summaryrefslogtreecommitdiff
path: root/src/render/WaterCannon.h
diff options
context:
space:
mode:
authorclaude-bot <[email protected]>2026-07-13 12:27:07 +0000
committerclaude-bot <[email protected]>2026-07-13 12:27:07 +0000
commit9f61c9e6ac6b1ac5692cf6352d2ebbd47a31a686 (patch)
treea84756b82513739a2672db3a1f0ec579db6d18ff /src/render/WaterCannon.h
downloadre3-miami.tar.gz
re3-miami.zip
Import Cai1Hsu/re3 @ miami (reVC / GTA:VC decompilation)HEADmiami
Snapshot import (no upstream history) into git.ancap.in.ua/claude, per @lzcnt. Source: https://github.com/Cai1Hsu/re3 branch miami.
Diffstat (limited to 'src/render/WaterCannon.h')
-rw-r--r--src/render/WaterCannon.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/render/WaterCannon.h b/src/render/WaterCannon.h
new file mode 100644
index 0000000..a37bdd1
--- /dev/null
+++ b/src/render/WaterCannon.h
@@ -0,0 +1,39 @@
+#pragma once
+
+#define WATERCANNON_GRAVITY (0.009f)
+#define WATERCANNON_LIFETIME (150)
+
+class CWaterCannon
+{
+public:
+ enum
+ {
+ NUM_SEGMENTPOINTS = 16,
+ };
+
+ int32 m_nId;
+ int16 m_nCur;
+ uint32 m_nTimeCreated;
+ CVector m_avecPos[NUM_SEGMENTPOINTS];
+ CVector m_avecVelocity[NUM_SEGMENTPOINTS];
+ bool m_abUsed[NUM_SEGMENTPOINTS];
+
+ void Init(void);
+ void Update_OncePerFrame(int16 index);
+ void Update_NewInput(CVector *pos, CVector *dir);
+ void Render(void);
+ void PushPeds(void);
+};
+
+VALIDATE_SIZE(CWaterCannon, 412);
+
+class CWaterCannons
+{
+public:
+ static CWaterCannon aCannons[NUM_WATERCANNONS];
+
+ static void Init(void);
+ static void UpdateOne(uint32 id, CVector *pos, CVector *dir);
+ static void Update();
+ static void Render(void);
+}; \ No newline at end of file