diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-13 14:01:49 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-13 14:01:49 +0100 |
commit | 3e198086e31c3f1b0269b5c53c0811b2fc575497 (patch) | |
tree | 4f9b0730f31472adde559940e25d42e104a9d98d /src/control/Script.h | |
parent | sync with lcs-dev (diff) | |
download | re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.tar re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.tar.gz re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.tar.bz2 re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.tar.lz re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.tar.xz re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.tar.zst re3-3e198086e31c3f1b0269b5c53c0811b2fc575497.zip |
Diffstat (limited to 'src/control/Script.h')
-rw-r--r-- | src/control/Script.h | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index aca148d2..a1e786c9 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -360,8 +360,10 @@ public: static void UndoBuildingSwaps(); static void UndoEntityInvisibilitySettings(); + /* static void ScriptDebugLine3D(float x1, float y1, float z1, float x2, float y2, float z2, uint32 col, uint32 col2); static void RenderTheScriptDebugLines(); + */ static void SaveAllScripts(uint8*, uint32*); static void LoadAllScripts(uint8*, uint32); @@ -420,10 +422,12 @@ public: static void DrawScriptSpheres(); static void HighlightImportantArea(uint32, float, float, float, float, float); static void HighlightImportantAngledArea(uint32, float, float, float, float, float, float, float, float, float); + /* static void DrawDebugSquare(float, float, float, float); static void DrawDebugAngledSquare(float, float, float, float, float, float, float, float); static void DrawDebugCube(float, float, float, float, float, float); static void DrawDebugAngledCube(float, float, float, float, float, float, float, float, float, float); + */ static void AddToInvisibilitySwapArray(CEntity*, bool); static void AddToBuildingSwapArray(CBuilding*, int32, int32); @@ -432,7 +436,7 @@ public: static int32 AddScriptSphere(int32 id, CVector pos, float radius); static int32 GetNewUniqueScriptSphereIndex(int32 index); static void RemoveScriptSphere(int32 index); - static void RemoveScriptTextureDictionary(); + //static void RemoveScriptTextureDictionary(); public: static void RemoveThisPed(CPed* pPed); @@ -549,7 +553,33 @@ public: int8 ProcessOneCommand(); void DoDeatharrestCheck(); - void UpdateCompareFlag(bool); + void UpdateCompareFlag(bool flag) + { + if (m_bNotFlag) + flag = !flag; + if (m_nAndOrState == ANDOR_NONE) { + m_bCondResult = flag; + return; + } + if (m_nAndOrState >= ANDS_1 && m_nAndOrState <= ANDS_8) { + m_bCondResult &= flag; + if (m_nAndOrState == ANDS_1) { + m_nAndOrState = ANDOR_NONE; + return; + } + } + else if (m_nAndOrState >= ORS_1 && m_nAndOrState <= ORS_8) { + m_bCondResult |= flag; + if (m_nAndOrState == ORS_1) { + m_nAndOrState = ANDOR_NONE; + return; + } + } + else { + return; + } + m_nAndOrState--; + } int16 GetPadState(uint16, uint16); int8 ProcessCommands0To99(int32); @@ -570,6 +600,7 @@ public: int8 ProcessCommands1500To1599(int32); int8 ProcessCommands1600To1699(int32); + uint32 CollectLocateParameters(uint32*, bool); void LocatePlayerCommand(int32, uint32*); void LocatePlayerCharCommand(int32, uint32*); void LocatePlayerCarCommand(int32, uint32*); |