diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-25 22:34:29 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-25 22:34:29 +0200 |
commit | 5acce16261606f06e39e09d0bd6ec0d95787ae38 (patch) | |
tree | d3b6a483930067302386dc3284dbd68326432bf3 /src/control/Script.h | |
parent | fixed dinput (diff) | |
download | re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.tar re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.tar.gz re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.tar.bz2 re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.tar.lz re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.tar.xz re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.tar.zst re3-5acce16261606f06e39e09d0bd6ec0d95787ae38.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.h | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index 9e9d9ab6..0984952a 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -78,8 +78,8 @@ class CRunningScript uint32 m_nWakeTime; uint16 m_nAndOrState; bool m_bNotFlag; - bool m_bWBCheckEnabled; - bool m_bWBChecked; + bool m_bDeatharrestEnabled; + bool m_bDeatharrestExecuted; bool m_bMissionFlag; public: @@ -113,6 +113,40 @@ public: int8 ProcessCommandsFrom1000To1099(int32); int8 ProcessCommandsFrom1100To1199(int32); void UpdateCompareFlag(bool); + int16 GetPadState(uint16, uint16); + void LocatePlayerCommand(int32, uint32*); + void LocatePlayerCharCommand(int32, uint32*); + void LocatePlayerCarCommand(int32, uint32*); + void LocateCharCommand(int32, uint32*); + void LocateCharCharCommand(int32, uint32*); + void LocateCharCarCommand(int32, uint32*); + void LocateCharObjectCommand(int32, uint32*); + void LocateCarCommand(int32, uint32*); + void LocateSniperBulletCommand(int32, uint32*); + void LocatePlayerInAreaCheckCommand(int32, uint32*); + void LocatePlayerInAngledAreaCheckCommand(int32, uint32*); + void LocateCharInAreaCheckCommand(int32, uint32*); + void LocateCharInAngledAreaCheckCommand(int32, uint32*); +private: + enum { + ANDOR_NONE = 0, + ANDS_1 = 1, + ANDS_2, + ANDS_3, + ANDS_4, + ANDS_5, + ANDS_6, + ANDS_7, + ANDS_8, + ORS_1 = 21, + ORS_2, + ORS_3, + ORS_4, + ORS_5, + ORS_6, + ORS_7, + ORS_8 + }; }; enum { @@ -338,4 +372,7 @@ public: static float ReadFloatFromScript(uint32* pIp){ return Read2BytesFromScript(pIp) / 16.0f; } + static void ReadTextLabelFromScript(uint32* pIp, char* buf){ + strncpy(buf, (const char*)&CTheScripts::ScriptSpace[*pIp], 8); + } }; |