mirror of
https://github.com/halpz/re3.git
synced 2025-05-13 05:26:38 +03:00
CAutomobile::ProcessControlInputs
This commit is contained in:
parent
3e1455cc37
commit
0548476ba6
7 changed files with 154 additions and 8 deletions
|
@ -154,7 +154,7 @@ spawnCar(int id)
|
|||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
static void
|
||||
FixCar(void)
|
||||
{
|
||||
CVehicle *veh = FindPlayerVehicle();
|
||||
|
@ -167,6 +167,15 @@ FixCar(void)
|
|||
((CAutomobile*)veh)->Fix();
|
||||
}
|
||||
|
||||
static void
|
||||
ToggleComedy(void)
|
||||
{
|
||||
CVehicle *veh = FindPlayerVehicle();
|
||||
if(veh == nil)
|
||||
return;
|
||||
veh->bComedyControls = !veh->bComedyControls;
|
||||
}
|
||||
|
||||
void
|
||||
DebugMenuPopulate(void)
|
||||
{
|
||||
|
@ -212,6 +221,8 @@ DebugMenuPopulate(void)
|
|||
DebugMenuAddCmd("Cheats", "Nasty limbs", NastyLimbsCheat);
|
||||
|
||||
DebugMenuAddCmd("Debug", "Fix Car", FixCar);
|
||||
DebugMenuAddCmd("Debug", "Toggle Comedy Controls", ToggleComedy);
|
||||
|
||||
DebugMenuAddVarBool8("Debug", "Show Ped Road Groups", (int8*)&gbShowPedRoadGroups, nil);
|
||||
DebugMenuAddVarBool8("Debug", "Show Car Road Groups", (int8*)&gbShowCarRoadGroups, nil);
|
||||
DebugMenuAddVarBool8("Debug", "Show Collision Polys", (int8*)&gbShowCollisionPolys, nil);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue