summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-19 22:27:41 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-19 22:27:41 +0200
commitfec0028e12fb7e362344cfc07d7dcb6b07c29e04 (patch)
tree675e1d491bd8f9cb80c707fbba45ae41005a4d31 /src/control/Script.cpp
parentslightly restructured ped flags for convenience (diff)
parentMerge pull request #567 from erorcun/miami (diff)
downloadre3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.tar
re3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.tar.gz
re3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.tar.bz2
re3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.tar.lz
re3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.tar.xz
re3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.tar.zst
re3-fec0028e12fb7e362344cfc07d7dcb6b07c29e04.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 4112acf4..0129b155 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -10334,8 +10334,20 @@ int8 CRunningScript::ProcessCommands1300To1399(int32 command)
{
switch (command) {
case COMMAND_SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG:
+ {
+ CollectParameters(&m_nIp, 3);
+ CPed *pTarget = CPools::GetPedPool()->GetAt(ScriptParams[0]);
+ uint8 flag = 1 << (uint8)ScriptParams[1];
+ if (ScriptParams[2])
+ pTarget->m_gangFlags |= flag;
+ else
+ pTarget->m_gangFlags &= ~flag;
+
+ return 0;
+ }
case COMMAND_LOAD_AND_LAUNCH_MISSION_EXCLUSIVE:
case COMMAND_IS_MISSION_AUDIO_PLAYING:
+ assert(0);
case COMMAND_CREATE_LOCKED_PROPERTY_PICKUP:
{
CollectParameters(&m_nIp, 3);