summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-01-01 00:35:54 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-01-01 00:35:54 +0100
commit80453d3f4ddc13f8458e14353c318a69cfe10518 (patch)
tree6d3dd1729a0270c971ba840a5400a586e9f1a290 /src/control/Script.h
parentMerge remote-tracking branch 'upstream/master' into script_dev (diff)
downloadre3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar
re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.gz
re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.bz2
re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.lz
re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.xz
re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.zst
re3-80453d3f4ddc13f8458e14353c318a69cfe10518.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 751ad9d5..fa8344ae 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -1,5 +1,6 @@
#pragma once
#include "common.h"
+#include "PedType.h"
#include "Text.h"
#include "Sprite2d.h"
@@ -92,6 +93,27 @@ public:
m_anLocalVariables[NUM_LOCAL_VARS + 1] += timeStep;
}
+ bool ThisIsAValidRandomPed(uint32 pedtype){
+ switch (pedtype){
+ case PEDTYPE_CIVMALE:
+ case PEDTYPE_CIVFEMALE:
+ case PEDTYPE_GANG1:
+ case PEDTYPE_GANG2:
+ case PEDTYPE_GANG3:
+ case PEDTYPE_GANG4:
+ case PEDTYPE_GANG5:
+ case PEDTYPE_GANG6:
+ case PEDTYPE_GANG7:
+ case PEDTYPE_GANG8:
+ case PEDTYPE_GANG9:
+ case PEDTYPE_CRIMINAL:
+ case PEDTYPE_PROSTITUTE:
+ return true;
+ default:
+ return false;
+ }
+ }
+
void CollectParameters(uint32*, int16);
int32 CollectNextParameterWithoutIncreasingPC(uint32);
int32* GetPointerToScriptVariable(uint32*, int16);