switch collision with debug menu
This commit is contained in:
parent
15a99da50e
commit
ad8e8f4341
@ -160,6 +160,13 @@ TeleportToWaypoint(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void
|
||||||
|
SwitchCarCollision(void)
|
||||||
|
{
|
||||||
|
if (FindPlayerVehicle() && FindPlayerVehicle()->IsCar())
|
||||||
|
FindPlayerVehicle()->bUsesCollision = !FindPlayerVehicle()->bUsesCollision;
|
||||||
|
}
|
||||||
|
|
||||||
static int engineStatus;
|
static int engineStatus;
|
||||||
static void
|
static void
|
||||||
SetEngineStatus(void)
|
SetEngineStatus(void)
|
||||||
@ -362,6 +369,7 @@ DebugMenuPopulate(void)
|
|||||||
#ifdef MENU_MAP
|
#ifdef MENU_MAP
|
||||||
DebugMenuAddCmd("Debug", "Teleport to map waypoint", TeleportToWaypoint);
|
DebugMenuAddCmd("Debug", "Teleport to map waypoint", TeleportToWaypoint);
|
||||||
#endif
|
#endif
|
||||||
|
DebugMenuAddCmd("Debug", "Switch car collision", SwitchCarCollision);
|
||||||
DebugMenuAddVar("Debug", "Engine Status", &engineStatus, nil, 1, 0, 226, nil);
|
DebugMenuAddVar("Debug", "Engine Status", &engineStatus, nil, 1, 0, 226, nil);
|
||||||
DebugMenuAddCmd("Debug", "Set Engine Status", SetEngineStatus);
|
DebugMenuAddCmd("Debug", "Set Engine Status", SetEngineStatus);
|
||||||
DebugMenuAddCmd("Debug", "Fix Car", FixCar);
|
DebugMenuAddCmd("Debug", "Fix Car", FixCar);
|
||||||
|
Loading…
Reference in New Issue
Block a user