X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 233 (tree) |
|---|---|
| Time | 2020-02-17 00:24:40 |
| Author | |
コンソールのコマンドを1個追加(player)、マップとの当たり判定関数のバグ修正
| @@ -591,6 +591,13 @@ | ||
| 591 | 591 | } |
| 592 | 592 | } |
| 593 | 593 | |
| 594 | + //見つけた距離が最大距離を超えていれば、判定を無効に。 | |
| 595 | + if( maxDist >= 0.0f ){ | |
| 596 | + if( min_pDist > maxDist ){ | |
| 597 | + min_blockface = -1; | |
| 598 | + } | |
| 599 | + } | |
| 600 | + | |
| 594 | 601 | //見つからなければ、ポインタに適当な数字を入れて返す。 |
| 595 | 602 | if( min_blockface == -1 ){ |
| 596 | 603 | if( face != NULL ){ *face = 0; } |
| @@ -3324,9 +3324,9 @@ | ||
| 3324 | 3324 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "config mif bd1 pd1 resinfo"); |
| 3325 | 3325 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "info view center map aiinfo <NUM>"); |
| 3326 | 3326 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "tag radar inmap sky <NUM> dark fog"); |
| 3327 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "ff revive kill <NUM> treat <NUM> nodamage <NUM>"); | |
| 3327 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "player <NUM> revive kill <NUM> treat <NUM> nodamage <NUM>"); | |
| 3328 | 3328 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "newobj <NUM> break <NUM> delhuman <NUM> delweapon <NUM> delobj <NUL>"); |
| 3329 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "nofight caution ailevel <NUM> bot stop estop"); | |
| 3329 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "nofight caution ailevel <NUM> ff bot stop estop"); | |
| 3330 | 3330 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "speed window ss clear exit"); |
| 3331 | 3331 | } |
| 3332 | 3332 |
| @@ -3899,6 +3899,25 @@ | ||
| 3899 | 3899 | } |
| 3900 | 3900 | } |
| 3901 | 3901 | |
| 3902 | + //プレイヤー切り替え | |
| 3903 | + if( GetCommandNum("player", &id) == true ){ | |
| 3904 | + if( (0 <= id)&&(id < MAX_HUMAN) ){ | |
| 3905 | + //対象プレイヤー番号を適用 | |
| 3906 | + ObjMgr.SetPlayerID(id); | |
| 3907 | + | |
| 3908 | + //プレイヤーの向きを取得 | |
| 3909 | + ObjMgr.GetPlayerHumanObject()->GetRxRy(&mouse_rx, &mouse_ry); | |
| 3910 | + | |
| 3911 | + //F1モード時にカメラの向きを再設定 | |
| 3912 | + if( Camera_F1mode == true ){ | |
| 3913 | + camera_rx = DegreeToRadian(90); | |
| 3914 | + } | |
| 3915 | + | |
| 3916 | + sprintf(str, "Changed player to Human[%d].", id); | |
| 3917 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); | |
| 3918 | + } | |
| 3919 | + } | |
| 3920 | + | |
| 3902 | 3921 | //全ての死者を蘇生する |
| 3903 | 3922 | if( strcmp(NewCommand, "revive") == 0 ){ |
| 3904 | 3923 | for(int i=0; i<MAX_HUMAN; i++){ |