mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 16:15:40 +00:00
debugmenu cleanup
This commit is contained in:
parent
291cdd4bfb
commit
0f8614221b
3 changed files with 15 additions and 53 deletions
|
@ -1094,7 +1094,7 @@ DisplayGameDebugText()
|
||||||
static bool bDisplayRate = false;
|
static bool bDisplayRate = false;
|
||||||
#ifndef FINAL
|
#ifndef FINAL
|
||||||
{
|
{
|
||||||
SETTWEAKPATH("GameDebugText");
|
SETTWEAKPATH("Debug");
|
||||||
TWEAKBOOL(bDisplayPosn);
|
TWEAKBOOL(bDisplayPosn);
|
||||||
TWEAKBOOL(bDisplayRate);
|
TWEAKBOOL(bDisplayRate);
|
||||||
}
|
}
|
||||||
|
|
|
@ -733,18 +733,6 @@ SwitchCarCollision(void)
|
||||||
FindPlayerVehicle()->bUsesCollision = !FindPlayerVehicle()->bUsesCollision;
|
FindPlayerVehicle()->bUsesCollision = !FindPlayerVehicle()->bUsesCollision;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int engineStatus;
|
|
||||||
static void
|
|
||||||
SetEngineStatus(void)
|
|
||||||
{
|
|
||||||
CVehicle *veh = FindPlayerVehicle();
|
|
||||||
if(veh == nil)
|
|
||||||
return;
|
|
||||||
if(!veh->IsCar())
|
|
||||||
return;
|
|
||||||
((CAutomobile*)veh)->Damage.SetEngineStatus(engineStatus);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ToggleComedy(void)
|
ToggleComedy(void)
|
||||||
{
|
{
|
||||||
|
@ -754,23 +742,6 @@ ToggleComedy(void)
|
||||||
veh->bComedyControls = !veh->bComedyControls;
|
veh->bComedyControls = !veh->bComedyControls;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
PlaceOnRoad(void)
|
|
||||||
{
|
|
||||||
CVehicle *veh = FindPlayerVehicle();
|
|
||||||
if(veh == nil)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(veh->IsCar())
|
|
||||||
((CAutomobile*)veh)->PlaceOnRoadProperly();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
ResetCamStatics(void)
|
|
||||||
{
|
|
||||||
TheCamera.Cams[TheCamera.ActiveCam].ResetStatics = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef MISSION_SWITCHER
|
#ifdef MISSION_SWITCHER
|
||||||
int8 nextMissionToSwitch = 0;
|
int8 nextMissionToSwitch = 0;
|
||||||
static void
|
static void
|
||||||
|
@ -1004,6 +975,10 @@ extern bool gbRenderWorld2;
|
||||||
#ifdef DRAW_GAME_VERSION_TEXT
|
#ifdef DRAW_GAME_VERSION_TEXT
|
||||||
extern bool gDrawVersionText;
|
extern bool gDrawVersionText;
|
||||||
DebugMenuAddVarBool8("Debug", "Version Text", &gDrawVersionText, nil);
|
DebugMenuAddVarBool8("Debug", "Version Text", &gDrawVersionText, nil);
|
||||||
|
#endif
|
||||||
|
DebugMenuAddVarBool8("Debug", "Show DebugStuffInRelease", &gbDebugStuffInRelease, nil);
|
||||||
|
#ifdef TIMEBARS
|
||||||
|
DebugMenuAddVarBool8("Debug", "Show Timebars", &gbShowTimebars, nil);
|
||||||
#endif
|
#endif
|
||||||
#ifndef FINAL
|
#ifndef FINAL
|
||||||
DebugMenuAddVarBool8("Debug", "Print Memory Usage", &gbPrintMemoryUsage, nil);
|
DebugMenuAddVarBool8("Debug", "Print Memory Usage", &gbPrintMemoryUsage, nil);
|
||||||
|
@ -1021,27 +996,14 @@ extern bool gbRenderWorld2;
|
||||||
#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);
|
|
||||||
DebugMenuAddCmd("Debug", "Set Engine Status", SetEngineStatus);
|
|
||||||
DebugMenuAddCmd("Debug", "Fix Car", FixCar);
|
DebugMenuAddCmd("Debug", "Fix Car", FixCar);
|
||||||
|
DebugMenuAddCmd("Debug", "Switch car collision", SwitchCarCollision);
|
||||||
DebugMenuAddCmd("Debug", "Toggle Comedy Controls", ToggleComedy);
|
DebugMenuAddCmd("Debug", "Toggle Comedy Controls", ToggleComedy);
|
||||||
DebugMenuAddCmd("Debug", "Place Car on Road", PlaceOnRoad);
|
|
||||||
|
|
||||||
DebugMenuAddVarBool8("Debug", "Catalina Heli On", &CHeli::CatalinaHeliOn, nil);
|
|
||||||
DebugMenuAddCmd("Debug", "Catalina Fly By", CHeli::StartCatalinaFlyBy);
|
|
||||||
DebugMenuAddCmd("Debug", "Catalina Take Off", CHeli::CatalinaTakeOff);
|
|
||||||
DebugMenuAddCmd("Debug", "Catalina Fly Away", CHeli::MakeCatalinaHeliFlyAway);
|
|
||||||
DebugMenuAddVarBool8("Debug", "Script Heli On", &CHeli::ScriptHeliOn, nil);
|
|
||||||
|
|
||||||
DebugMenuAddVarBool8("Debug", "Toggle popping heads on headshot", &CPed::bPopHeadsOnHeadshot, nil);
|
DebugMenuAddVarBool8("Debug", "Toggle popping heads on headshot", &CPed::bPopHeadsOnHeadshot, nil);
|
||||||
DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start);
|
//DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start);
|
||||||
DebugMenuAddCmd("Debug", "Stop Credits", CCredits::Stop);
|
//DebugMenuAddCmd("Debug", "Stop Credits", CCredits::Stop);
|
||||||
|
|
||||||
DebugMenuAddVarBool8("Debug", "Show DebugStuffInRelease", &gbDebugStuffInRelease, nil);
|
|
||||||
#ifdef TIMEBARS
|
|
||||||
DebugMenuAddVarBool8("Debug", "Show Timebars", &gbShowTimebars, nil);
|
|
||||||
#endif
|
|
||||||
#ifdef MISSION_SWITCHER
|
#ifdef MISSION_SWITCHER
|
||||||
DebugMenuEntry *missionEntry;
|
DebugMenuEntry *missionEntry;
|
||||||
static const char* missions[] = {
|
static const char* missions[] = {
|
||||||
|
@ -1074,11 +1036,11 @@ extern bool gbRenderWorld2;
|
||||||
#endif
|
#endif
|
||||||
DebugMenuAddVarBool8("Cam", "Print Debug Code", &PrintDebugCode, nil);
|
DebugMenuAddVarBool8("Cam", "Print Debug Code", &PrintDebugCode, nil);
|
||||||
DebugMenuAddVar("Cam", "Cam Mode", &DebugCamMode, nil, 1, 0, CCam::MODE_EDITOR, nil);
|
DebugMenuAddVar("Cam", "Cam Mode", &DebugCamMode, nil, 1, 0, CCam::MODE_EDITOR, nil);
|
||||||
DebugMenuAddCmd("Cam", "Normal", []() { DebugCamMode = 0; });
|
// DebugMenuAddCmd("Cam", "Normal", []() { DebugCamMode = 0; });
|
||||||
DebugMenuAddCmd("Cam", "Follow Ped With Bind", []() { DebugCamMode = CCam::MODE_FOLLOW_PED_WITH_BIND; });
|
// DebugMenuAddCmd("Cam", "Follow Ped With Bind", []() { DebugCamMode = CCam::MODE_FOLLOW_PED_WITH_BIND; });
|
||||||
DebugMenuAddCmd("Cam", "Reaction", []() { DebugCamMode = CCam::MODE_REACTION; });
|
// DebugMenuAddCmd("Cam", "Reaction", []() { DebugCamMode = CCam::MODE_REACTION; });
|
||||||
DebugMenuAddCmd("Cam", "Chris", []() { DebugCamMode = CCam::MODE_CHRIS; });
|
// DebugMenuAddCmd("Cam", "Chris", []() { DebugCamMode = CCam::MODE_CHRIS; });
|
||||||
DebugMenuAddCmd("Cam", "Reset Statics", ResetCamStatics);
|
// DebugMenuAddCmd("Cam", "Reset Statics", ResetCamStatics);
|
||||||
|
|
||||||
CTweakVars::AddDBG("Debug");
|
CTweakVars::AddDBG("Debug");
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#include "Shadows.h"
|
#include "Shadows.h"
|
||||||
|
|
||||||
#ifdef DEBUGMENU
|
#ifdef DEBUGMENU
|
||||||
SETTWEAKPATH("Shadows");
|
//SETTWEAKPATH("Shadows");
|
||||||
TWEAKBOOL(gbPrintShite);
|
//TWEAKBOOL(gbPrintShite);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwImVertexIndex ShadowIndexList[24];
|
RwImVertexIndex ShadowIndexList[24];
|
||||||
|
|
Loading…
Reference in a new issue