diff options
author | erorcun <erayorcunus@gmail.com> | 2020-03-17 18:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 18:47:12 +0100 |
commit | 31d16d395eb6582b20a157764ce8b0da608ef3d8 (patch) | |
tree | 4443d13dedf97357acfe2e9b859d1ed431fdbbf0 /src/weapons/Explosion.h | |
parent | Merge pull request #347 from Nick007J/master (diff) | |
parent | Merge branch 'master' into Radar2 (diff) | |
download | re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.tar re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.tar.gz re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.tar.bz2 re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.tar.lz re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.tar.xz re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.tar.zst re3-31d16d395eb6582b20a157764ce8b0da608ef3d8.zip |
Diffstat (limited to 'src/weapons/Explosion.h')
-rw-r--r-- | src/weapons/Explosion.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/weapons/Explosion.h b/src/weapons/Explosion.h new file mode 100644 index 00000000..e6ef9496 --- /dev/null +++ b/src/weapons/Explosion.h @@ -0,0 +1,50 @@ +#pragma once + +class CEntity; +class CVector; + +enum eExplosionType +{ + EXPLOSION_GRENADE, + EXPLOSION_MOLOTOV, + EXPLOSION_ROCKET, + EXPLOSION_CAR, + EXPLOSION_CAR_QUICK, + EXPLOSION_HELI, + EXPLOSION_MINE, + EXPLOSION_BARREL, + EXPLOSION_TANK_GRENADE, + EXPLOSION_HELI_BOMB +}; + +class CExplosion +{ + eExplosionType m_ExplosionType; + CVector m_vecPosition; + float m_fRadius; + float m_fPropagationRate; + CEntity *m_pCreatorEntity; + CEntity *m_pVictimEntity; + float m_fStopTime; + bool m_bActive; + int8 m_bActiveCounter; + int32 m_nStartTime; + uint32 m_nParticlesExpireTime; + float m_fPower; + int32 field_34; + int32 field_38; +public: + static void Initialise(); + static void Shutdown(); + static void AddExplosion(CEntity *explodingEntity, CEntity *culprit, eExplosionType type, + const CVector &pos, uint32); + + static int8 GetExplosionActiveCounter(uint8 id); + static CVector *GetExplosionPosition(uint8 id); + static uint8 GetExplosionType(uint8 id); + static void ResetExplosionActiveCounter(uint8 id); + static void RemoveAllExplosionsInArea(CVector, float); + static bool TestForExplosionInArea(eExplosionType, float, float, float, float, float, float); +}; + +extern CExplosion (&gaExplosion)[48];
\ No newline at end of file |