summaryrefslogtreecommitdiffstats
path: root/src/core/Fire.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-10 13:23:17 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-12 05:42:54 +0200
commit8a622a0e724cd00acc7e61b159462355319b39cb (patch)
treedadddb5687c56a275313360d36a2bdbcc1b9659f /src/core/Fire.h
parentFix sniper and water creatures bug, mark some files (diff)
downloadre3-8a622a0e724cd00acc7e61b159462355319b39cb.tar
re3-8a622a0e724cd00acc7e61b159462355319b39cb.tar.gz
re3-8a622a0e724cd00acc7e61b159462355319b39cb.tar.bz2
re3-8a622a0e724cd00acc7e61b159462355319b39cb.tar.lz
re3-8a622a0e724cd00acc7e61b159462355319b39cb.tar.xz
re3-8a622a0e724cd00acc7e61b159462355319b39cb.tar.zst
re3-8a622a0e724cd00acc7e61b159462355319b39cb.zip
Diffstat (limited to '')
-rw-r--r--src/core/Fire.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/Fire.h b/src/core/Fire.h
index 85e53f61..8126f830 100644
--- a/src/core/Fire.h
+++ b/src/core/Fire.h
@@ -14,10 +14,10 @@ public:
CEntity *m_pSource;
uint32 m_nExtinguishTime;
uint32 m_nStartTime;
- int32 field_20;
uint32 m_nNextTimeToAddFlames;
- uint32 m_nFiremenPuttingOut;
float m_fStrength;
+ float m_fWaterExtinguishCountdown;
+ bool m_bExtinguishedWithWater;
CFire();
~CFire();
@@ -34,15 +34,17 @@ class CFireManager
public:
uint32 m_nTotalFires;
CFire m_aFires[NUM_FIRES];
- void StartFire(CVector pos, float size, bool propagation);
- CFire *StartFire(CEntity *entityOnFire, CEntity *fleeFrom, float strength, bool propagation);
+
+ void StartFire(CVector pos, float size, uint8 propagation);
+ CFire *StartFire(CEntity *entityOnFire, CEntity *fleeFrom, float strength, uint8 propagation);
void Update(void);
CFire *FindFurthestFire_NeverMindFireMen(CVector coords, float minRange, float maxRange);
CFire *FindNearestFire(CVector vecPos, float *pDistance);
CFire *GetNextFreeFire(void);
uint32 GetTotalActiveFires() const;
void ExtinguishPoint(CVector point, float range);
- int32 StartScriptFire(const CVector &pos, CEntity *target, float strength, bool propagation);
+ bool ExtinguishPointWithWater(CVector point, float range);
+ int32 StartScriptFire(const CVector &pos, CEntity *target, float strength, uint8 propagation);
bool IsScriptFireExtinguish(int16 index);
void RemoveAllScriptFires(void);
void RemoveScriptFire(int16 index);