diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-19 21:41:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 21:41:59 +0200 |
commit | ada5c245a8066f180926ee873709e989f4ac7f32 (patch) | |
tree | a3edae2913a4af9682f7ecfec53367a484c2975c /src/control/Script.cpp | |
parent | Merge pull request #564 from Xinerki/miami (diff) | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
download | re3-ada5c245a8066f180926ee873709e989f4ac7f32.tar re3-ada5c245a8066f180926ee873709e989f4ac7f32.tar.gz re3-ada5c245a8066f180926ee873709e989f4ac7f32.tar.bz2 re3-ada5c245a8066f180926ee873709e989f4ac7f32.tar.lz re3-ada5c245a8066f180926ee873709e989f4ac7f32.tar.xz re3-ada5c245a8066f180926ee873709e989f4ac7f32.tar.zst re3-ada5c245a8066f180926ee873709e989f4ac7f32.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 2ad1e9de..16c5c0ff 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -10381,8 +10381,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); |