summaryrefslogtreecommitdiffstats
path: root/src/control/Script3.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-09 18:33:21 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-09 18:33:21 +0100
commit203dff9165d473d030d8945ef80f1c12350662cf (patch)
tree8d0d2a3fe3a9e88784c48366824f18ffed240d70 /src/control/Script3.cpp
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
downloadre3-203dff9165d473d030d8945ef80f1c12350662cf.tar
re3-203dff9165d473d030d8945ef80f1c12350662cf.tar.gz
re3-203dff9165d473d030d8945ef80f1c12350662cf.tar.bz2
re3-203dff9165d473d030d8945ef80f1c12350662cf.tar.lz
re3-203dff9165d473d030d8945ef80f1c12350662cf.tar.xz
re3-203dff9165d473d030d8945ef80f1c12350662cf.tar.zst
re3-203dff9165d473d030d8945ef80f1c12350662cf.zip
Diffstat (limited to 'src/control/Script3.cpp')
-rw-r--r--src/control/Script3.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/control/Script3.cpp b/src/control/Script3.cpp
index 26e1187d..0134df00 100644
--- a/src/control/Script3.cpp
+++ b/src/control/Script3.cpp
@@ -1787,10 +1787,9 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
pBoat->AutoPilot.m_nCruiseSpeed = *(float*)&ScriptParams[1];
return 0;
}
- /*
case COMMAND_GET_RANDOM_CHAR_IN_AREA:
{
- CollectParameters(&m_nIp, 4);
+ CollectParameters(&m_nIp, 7);
int ped_handle = -1;
CVector pos = FindPlayerCoors();
float x1 = *(float*)&ScriptParams[0];
@@ -1814,7 +1813,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
continue;
// if (pPed->GetModelIndex() == MI_SCUM_WOM || pPed->GetModelIndex() == MI_SCUM_MAN)
// continue;
- if (!ThisIsAValidRandomPed(pPed->m_nPedType))
+ if (!ThisIsAValidRandomPed(pPed->m_nPedType, ScriptParams[5], ScriptParams[6], ScriptParams[7])) // TODO
continue;
if (pPed->bIsLeader || pPed->m_leader)
continue;
@@ -1836,7 +1835,6 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
StoreParameters(&m_nIp, 1);
return 0;
}
- */
case COMMAND_GET_RANDOM_CHAR_IN_ZONE:
{
char zone[KEY_LENGTH_IN_SCRIPT];