diff options
author | erorcun <erayorcunus@gmail.com> | 2020-04-13 14:36:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 14:36:05 +0200 |
commit | e2fb0578b53e8fac394d82a1d599e6b3ee81acc8 (patch) | |
tree | 4d7fd2a212e75c52f9adc92602a8411bbd7905ec /src/core/re3.cpp | |
parent | Fix compilation error (diff) | |
parent | CFileLoader last funcs and Frontend cleanup (diff) | |
download | re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.tar re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.tar.gz re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.tar.bz2 re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.tar.lz re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.tar.xz re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.tar.zst re3-e2fb0578b53e8fac394d82a1d599e6b3ee81acc8.zip |
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r-- | src/core/re3.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 51213048..321ff172 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -150,19 +150,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(); @@ -369,8 +356,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); |