summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-21 10:32:27 +0200
committeraap <aap@papnet.eu>2020-05-21 10:32:27 +0200
commitff219da3ebe82e5b4f1db544a49fd101a6e46702 (patch)
treedf2197b26038bf47d91998bbb173f519e81ec5b6 /src/control/Script.h
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
parentMerge pull request #573 from Nick007J/miami (diff)
downloadre3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.tar
re3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.tar.gz
re3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.tar.bz2
re3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.tar.lz
re3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.tar.xz
re3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.tar.zst
re3-ff219da3ebe82e5b4f1db544a49fd101a6e46702.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index f7aaa46c..811fbef5 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -15,6 +15,12 @@ class CPlayerInfo;
class CRunningScript;
#define KEY_LENGTH_IN_SCRIPT 8
+#define SPHERE_MARKER_R 252
+#define SPHERE_MARKER_G 138
+#define SPHERE_MARKER_B 242
+#define SPHERE_MARKER_A 228
+#define SPHERE_MARKER_PULSE_PERIOD 2048
+#define SPHERE_MARKER_PULSE_FRACTION 0.1f
struct intro_script_rectangle
{
@@ -485,10 +491,11 @@ private:
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
- bool ThisIsAValidRandomPed(uint32 pedtype) {
+ bool ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, int criminal) {
switch (pedtype) {
case PEDTYPE_CIVMALE:
case PEDTYPE_CIVFEMALE:
+ return civ;
case PEDTYPE_GANG1:
case PEDTYPE_GANG2:
case PEDTYPE_GANG3:
@@ -498,13 +505,16 @@ private:
case PEDTYPE_GANG7:
case PEDTYPE_GANG8:
case PEDTYPE_GANG9:
+ return gang;
case PEDTYPE_CRIMINAL:
case PEDTYPE_PROSTITUTE:
- return true;
+ return criminal;
default:
return false;
}
}
+
+ bool CheckDamagedWeaponType(int32 type, int32 actual);
static bool ThisIsAValidRandomCop(int32 mi, bool cop, bool swat, bool fbi, bool army, bool miami);
};