diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-23 11:30:37 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-23 11:30:37 +0100 |
commit | 1721a74466ff28b6ac92bdec63965784adecd5fa (patch) | |
tree | a5af4afe68cdcd21f9187ac26dc190ec3d218d51 | |
parent | some changes (diff) | |
download | re3-1721a74466ff28b6ac92bdec63965784adecd5fa.tar re3-1721a74466ff28b6ac92bdec63965784adecd5fa.tar.gz re3-1721a74466ff28b6ac92bdec63965784adecd5fa.tar.bz2 re3-1721a74466ff28b6ac92bdec63965784adecd5fa.tar.lz re3-1721a74466ff28b6ac92bdec63965784adecd5fa.tar.xz re3-1721a74466ff28b6ac92bdec63965784adecd5fa.tar.zst re3-1721a74466ff28b6ac92bdec63965784adecd5fa.zip |
-rw-r--r-- | src/control/Script.cpp | 2 | ||||
-rw-r--r-- | src/control/Script.h | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 328a0ac2..1d2e011f 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -9993,4 +9993,6 @@ InjectHook(0x438790, &CTheScripts::Init, PATCH_JUMP); InjectHook(0x439040, &CTheScripts::Process, PATCH_JUMP); InjectHook(0x439400, &CTheScripts::StartTestScript, PATCH_JUMP); InjectHook(0x439410, &CTheScripts::IsPlayerOnAMission, PATCH_JUMP); +//InjectHook(0x44FD10, &CTheScripts::UndoBuildingSwaps, PATCH_JUMP); +//InjectHook(0x44FD60, &CTheScripts::UndoEntityVisibilitySettings, PATCH_JUMP); ENDPATCHES diff --git a/src/control/Script.h b/src/control/Script.h index fcbd8395..5533c417 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -269,10 +269,16 @@ public: static CRunningScript* StartTestScript(); static bool IsPlayerOnAMission(); static void ClearSpaceForMissionEntity(const CVector&, CEntity*); - static void ScriptDebugLine3D(float x1, float y1, float z1, float x2, float y2, float z2, int col, int col2); + static void UndoBuildingSwaps(); static void UndoEntityVisibilitySettings(); + static void ScriptDebugLine3D(float x1, float y1, float z1, float x2, float y2, float z2, int col, int col2); + static void RenderTheScriptDebugLines(); + + static void SaveAllScripts(uint8*, uint32*); + static void LoadAllScripts(uint8*, uint32); + static bool IsDebugOn() { return DbgFlag; }; static void InvertDebugFlag() { DbgFlag = !DbgFlag; } @@ -303,9 +309,7 @@ private: 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 RenderTheScriptDebugLines(); - static void SaveAllScripts(uint8*, uint32*); - static void LoadAllScripts(uint8*, uint32); + static void AddToInvisibilitySwapArray(CEntity*, bool); static void AddToBuildingSwapArray(CBuilding*, int32, int32); |