summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-14 00:18:53 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-14 00:18:53 +0200
commitf54c83c0b527e3034538e4c8791f10fc4e313576 (patch)
treed10bf31e0badad1e55f035c585c47af557e961e9 /src/core/re3.cpp
parentscene edit (diff)
parentupdate readme (diff)
downloadre3-f54c83c0b527e3034538e4c8791f10fc4e313576.tar
re3-f54c83c0b527e3034538e4c8791f10fc4e313576.tar.gz
re3-f54c83c0b527e3034538e4c8791f10fc4e313576.tar.bz2
re3-f54c83c0b527e3034538e4c8791f10fc4e313576.tar.lz
re3-f54c83c0b527e3034538e4c8791f10fc4e313576.tar.xz
re3-f54c83c0b527e3034538e4c8791f10fc4e313576.tar.zst
re3-f54c83c0b527e3034538e4c8791f10fc4e313576.zip
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r--src/core/re3.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 475176b6..096b9d9e 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -152,19 +152,6 @@ SpawnCar(int id)
}
static void
-LetThemFollowYou(void) {
- CPed *player = (CPed*) FindPlayerPed();
- for (int i = 0; i < player->m_numNearPeds; i++) {
- CPed *nearPed = player->m_nearPeds[i];
- if (nearPed && !nearPed->IsPlayer()) {
- nearPed->SetObjective(OBJECTIVE_FOLLOW_PED_IN_FORMATION, (void*)player);
- nearPed->m_pedFormation = (eFormation)(1 + (rand() & 7));
- nearPed->bScriptObjectiveCompleted = false;
- }
- }
-}
-
-static void
FixCar(void)
{
CVehicle *veh = FindPlayerVehicle();
@@ -344,6 +331,7 @@ DebugMenuPopulate(void)
DebugMenuAddCmd("Spawn", "Spawn Dodo", [](){ SpawnCar(MI_DODO); });
DebugMenuAddCmd("Spawn", "Spawn Rhino", [](){ SpawnCar(MI_RHINO); });
DebugMenuAddCmd("Spawn", "Spawn Firetruck", [](){ SpawnCar(MI_FIRETRUCK); });
+ DebugMenuAddCmd("Spawn", "Spawn Predator", [](){ SpawnCar(MI_PREDATOR); });
DebugMenuAddVarBool8("Debug", "Draw hud", (int8*)&CHud::m_Wants_To_Draw_Hud, nil);
DebugMenuAddVarBool8("Debug", "Edit on", (int8*)&CSceneEdit::m_bEditOn, nil);
@@ -372,8 +360,6 @@ DebugMenuPopulate(void)
DebugMenuAddVarBool8("Debug", "Don't render Peds", (int8*)&gbDontRenderPeds, nil);
DebugMenuAddVarBool8("Debug", "Don't render Vehicles", (int8*)&gbDontRenderVehicles, nil);
DebugMenuAddVarBool8("Debug", "Don't render Objects", (int8*)&gbDontRenderObjects, nil);
-
- DebugMenuAddCmd("Debug", "Make peds follow you in formation", LetThemFollowYou);
#ifdef TOGGLEABLE_BETA_FEATURES
DebugMenuAddVarBool8("Debug", "Toggle banned particles", (int8*)&CParticle::bEnableBannedParticles, nil);
DebugMenuAddVarBool8("Debug", "Toggle popping heads on headshot", (int8*)&CPed::bPopHeadsOnHeadshot, nil);