diff options
author | aap <aap@papnet.eu> | 2020-05-21 10:32:27 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-21 10:32:27 +0200 |
commit | ff219da3ebe82e5b4f1db544a49fd101a6e46702 (patch) | |
tree | df2197b26038bf47d91998bbb173f519e81ec5b6 /src/control/Script.h | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
parent | Merge pull request #573 from Nick007J/miami (diff) | |
download | re3-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 '')
-rw-r--r-- | src/control/Script.h | 14 |
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); }; |