diff options
author | Nikolay <nickvnuk@gmail.com> | 2020-12-24 15:22:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 15:22:28 +0100 |
commit | c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8 (patch) | |
tree | d126cc1fb7832f1cb54b18cc40729b87bc27269d /src/control/Script4.cpp | |
parent | make screen droplets not crash without neo.txd (diff) | |
parent | fix (diff) | |
download | re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.gz re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.bz2 re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.lz re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.xz re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.zst re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.zip |
Diffstat (limited to 'src/control/Script4.cpp')
-rw-r--r-- | src/control/Script4.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp index afd6eba4..986e82f8 100644 --- a/src/control/Script4.cpp +++ b/src/control/Script4.cpp @@ -244,7 +244,12 @@ int8 CRunningScript::ProcessCommands800To899(int32 command) pPed->SetObjective(OBJECTIVE_CATCH_TRAIN); return 0; } - //case COMMAND_SET_COLL_OBJ_CATCH_TRAIN: +#ifdef GTA_SCRIPT_COLLECTIVE + case COMMAND_SET_COLL_OBJ_CATCH_TRAIN: + CollectParameters(&m_nIp, 1); + CTheScripts::SetObjectiveForAllPedsInCollective(ScriptParams[0], OBJECTIVE_CATCH_TRAIN); + return 0; +#endif case COMMAND_SET_PLAYER_NEVER_GETS_TIRED: { CollectParameters(&m_nIp, 2); @@ -1090,7 +1095,12 @@ int8 CRunningScript::ProcessCommands800To899(int32 command) case COMMAND_GIVE_PLAYER_DETONATOR: CGarages::GivePlayerDetonator(); return 0; - //case COMMAND_SET_COLL_OBJ_STEAL_ANY_CAR: +#ifdef GTA_SCRIPT_COLLECTIVE + case COMMAND_SET_COLL_OBJ_STEAL_ANY_CAR: + CollectParameters(&m_nIp, 1); + CTheScripts::SetObjectiveForAllPedsInCollective(ScriptParams[0], OBJECTIVE_STEAL_ANY_CAR); + return 0; +#endif case COMMAND_SET_OBJECT_VELOCITY: { CollectParameters(&m_nIp, 4); |