summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-23 00:36:13 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-23 00:36:13 +0100
commit917cf44defae5d304f590c8754e448b875d56357 (patch)
treea4efb80b549ef19089d70c2634b7ab07172b7588 /src/control/Script.h
parentfix (diff)
downloadre3-917cf44defae5d304f590c8754e448b875d56357.tar
re3-917cf44defae5d304f590c8754e448b875d56357.tar.gz
re3-917cf44defae5d304f590c8754e448b875d56357.tar.bz2
re3-917cf44defae5d304f590c8754e448b875d56357.tar.lz
re3-917cf44defae5d304f590c8754e448b875d56357.tar.xz
re3-917cf44defae5d304f590c8754e448b875d56357.tar.zst
re3-917cf44defae5d304f590c8754e448b875d56357.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 780440dd..c30768b3 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -4,6 +4,7 @@
#include "Ped.h"
#include "PedType.h"
#include "Text.h"
+#include "sList.h"
#include "Sprite2d.h"
class CEntity;
@@ -273,6 +274,20 @@ struct tBuildingSwap
int32 m_nOldModel;
};
+struct script_corona
+{
+ int id;
+ float x;
+ float y;
+ float z;
+ float size;
+ uint8 r;
+ uint8 g;
+ uint8 b;
+ int type;
+ int flareType;
+};
+
enum {
VAR_LOCAL = 1,
@@ -343,12 +358,14 @@ public:
static int AllowedCollision[MAX_ALLOWED_COLLISIONS];
static short* SavedVarIndices;
static int NumSaveVars;
- static bool FSDestroyedFlag;
+ static int FSDestroyedFlag;
static int NextProcessId;
static bool InTheScripts;
static CRunningScript* pCurrent;
static uint16 NumTrueGlobals;
static uint16 MostGlobals;
+ static base::cSList<script_corona> mCoronas;
+ static int NextScriptCoronaID;
static bool Init(bool loaddata = false);
static void Process();
@@ -468,6 +485,8 @@ public:
static void SetObjectiveForAllPedsInCollective(int, eObjective);
#endif
+ bool IsFortStauntonDestroyed() { return *(int32*)&ScriptSpace[FSDestroyedFlag] == 1; }
+
};
extern int ScriptParams[32];
@@ -665,4 +684,5 @@ extern int scriptToLoad;
#endif
extern int gScriptsFile;
+extern CVector gVectorSetInLua;