X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 336 (tree) |
|---|---|
| Time | 2022-10-23 23:39:31 |
| Author | |
デバック用コンソールに"teleport"コマンド追加、一部コマンドの仕様改善。
| @@ -3587,12 +3587,12 @@ | ||
| 3587 | 3587 | //コマンドリスト |
| 3588 | 3588 | if( strcmp(NewCommand, "help") == 0 ){ |
| 3589 | 3589 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "help human result event skip <NUM>"); |
| 3590 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "config mif bd1 pd1 resinfo"); | |
| 3591 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "info view center map model aiinfo <NUM>"); | |
| 3592 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "tag radar inmap sky <NUM> dark fog"); | |
| 3590 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "config mif bd1 pd1 resinfo info"); | |
| 3591 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "view center map model aiinfo <NUM> tag"); | |
| 3592 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "radar inmap sky <NUM> dark fog teleport <NUM>"); | |
| 3593 | 3593 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "player <NUM> revive kill <NUM> treat <NUM> nodamage <NUM>"); |
| 3594 | 3594 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "newobj <NUM> break <NUM> delhuman <NUM> delweapon <NUM> delobj <NUM>"); |
| 3595 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "nofight caution ailevel <NUM> ff bot stop estop"); | |
| 3595 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "nofight caution ailevel <NUM> ff bot stop estop"); | |
| 3596 | 3596 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "speed window ss clear ver exit"); |
| 3597 | 3597 | } |
| 3598 | 3598 |
| @@ -4265,9 +4265,27 @@ | ||
| 4265 | 4265 | } |
| 4266 | 4266 | } |
| 4267 | 4267 | |
| 4268 | + //プレイヤー移動 | |
| 4269 | + if( GetCommandNum("teleport", &id) == true ){ | |
| 4270 | + if( (0 <= id)&&(id < MAX_HUMAN)&&(id != ObjMgr.GetPlayerID()) ){ | |
| 4271 | + float x, y, z, rx; | |
| 4272 | + human *thuman = ObjMgr.GetHumanObject(id); | |
| 4273 | + | |
| 4274 | + //ターゲットの座標取得 | |
| 4275 | + thuman->GetPosData(&x, &y, &z, NULL); | |
| 4276 | + | |
| 4277 | + //プレイヤー移動 | |
| 4278 | + ObjMgr.GetPlayerHumanObject()->GetPosData(NULL, NULL ,NULL, &rx); | |
| 4279 | + ObjMgr.GetPlayerHumanObject()->SetPosData(x + 5.0f, y + 5.0f, z + 5.0f, rx); | |
| 4280 | + | |
| 4281 | + sprintf(str, "Teleported player to Human[%d].", id); | |
| 4282 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); | |
| 4283 | + } | |
| 4284 | + } | |
| 4285 | + | |
| 4268 | 4286 | //プレイヤー切り替え |
| 4269 | 4287 | if( GetCommandNum("player", &id) == true ){ |
| 4270 | - if( (0 <= id)&&(id < MAX_HUMAN) ){ | |
| 4288 | + if( (0 <= id)&&(id < MAX_HUMAN)&&(id != ObjMgr.GetPlayerID()) ){ | |
| 4271 | 4289 | //対象プレイヤー番号を適用 |
| 4272 | 4290 | ObjMgr.SetPlayerID(id); |
| 4273 | 4291 |
| @@ -4666,6 +4684,11 @@ | ||
| 4666 | 4684 | GameSpeed = 1; |
| 4667 | 4685 | } |
| 4668 | 4686 | #endif |
| 4687 | + | |
| 4688 | + if( strcmp(NewCommand, "mikan") == 0 ){ | |
| 4689 | + AddInfoConsole(d3dg->GetColorCode(1.0f,0.5f,0.0f,1.0f), "Hello! I'm [-_-;](mikan)."); | |
| 4690 | + AddInfoConsole(d3dg->GetColorCode(1.0f,0.5f,0.0f,1.0f), "Thank you for playing OpenXOPS!"); | |
| 4691 | + } | |
| 4669 | 4692 | } |
| 4670 | 4693 | |
| 4671 | 4694 | //! @brief デバック用コンソールの表示処理 |