summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-24 00:01:41 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-24 00:01:41 +0200
commit0b12cacf15baea97414d401eb2684cfc4cec8d0d (patch)
tree0d59b3a90372bb06635edb341861141ebcc92b11 /src/control/Script.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.tar
re3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.tar.gz
re3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.tar.bz2
re3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.tar.lz
re3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.tar.xz
re3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.tar.zst
re3-0b12cacf15baea97414d401eb2684cfc4cec8d0d.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index c7c762d2..0445922a 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9650,6 +9650,16 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
#endif
return 0;
#endif
+#ifndef GTA3_1_1_PATCH
+ case COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER:
+ CollectParameters(&m_nIp, 1);
+#ifdef FIX_BUGS
+ CPed::nThreatReactionRangeMultiplier = *(float*)&ScriptParams[0];
+#else
+ CPed::nThreatReactionRangeMultiplier = (float)ScriptParams[0];
+#endif
+ return 0;
+#endif
default:
assert(0);
}