summaryrefslogtreecommitdiff
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-25 23:59:55 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-25 23:59:55 +0300
commitad8e8f434117894f052ced019d8b96a7144d0583 (patch)
tree542b4a59aaa4ad489940f7b4933b36542d1686d1 /src/core/re3.cpp
parent15a99da50e330f2116bbda57695064fa9cf5772b (diff)
switch collision with debug menu
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r--src/core/re3.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 9bc6400c..883caec5 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)
@@ -362,6 +369,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);