diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-26 16:24:47 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-26 16:24:47 +0200 |
commit | 0ce2af7a0d233dea7ec38cde0b7434ab64dc6098 (patch) | |
tree | 57108b314e2d41b328fe1c2e3929c0101327af29 /src/core | |
parent | updated librw (diff) | |
parent | updated librw (diff) | |
download | re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.tar re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.tar.gz re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.tar.bz2 re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.tar.lz re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.tar.xz re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.tar.zst re3-0ce2af7a0d233dea7ec38cde0b7434ab64dc6098.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/re3.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index a74e5ffa..54077e6f 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -160,6 +160,13 @@ TeleportToWaypoint(void) } #endif +static void +SwitchCarCollision(void) +{ + if (FindPlayerVehicle() && FindPlayerVehicle()->IsCar()) + FindPlayerVehicle()->bUsesCollision = !FindPlayerVehicle()->bUsesCollision; +} + static int engineStatus; static void SetEngineStatus(void) @@ -369,6 +376,7 @@ DebugMenuPopulate(void) #ifdef MENU_MAP DebugMenuAddCmd("Debug", "Teleport to map waypoint", TeleportToWaypoint); #endif + DebugMenuAddCmd("Debug", "Switch car collision", SwitchCarCollision); DebugMenuAddVar("Debug", "Engine Status", &engineStatus, nil, 1, 0, 226, nil); DebugMenuAddCmd("Debug", "Set Engine Status", SetEngineStatus); DebugMenuAddCmd("Debug", "Fix Car", FixCar); |