diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/fire.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/fire.h')
| -rw-r--r-- | game/server/fire.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/game/server/fire.h b/game/server/fire.h new file mode 100644 index 0000000..c04641b --- /dev/null +++ b/game/server/fire.h @@ -0,0 +1,52 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef FIRE_H +#define FIRE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "entityoutput.h" +#include "fire_smoke.h" +#include "plasma.h" + +//Spawnflags +#define SF_FIRE_INFINITE 0x00000001 +#define SF_FIRE_SMOKELESS 0x00000002 +#define SF_FIRE_START_ON 0x00000004 +#define SF_FIRE_START_FULL 0x00000008 +#define SF_FIRE_DONT_DROP 0x00000010 +#define SF_FIRE_NO_GLOW 0x00000020 +#define SF_FIRE_DIE_PERMANENT 0x00000080 +#define SF_FIRE_VISIBLE_FROM_ABOVE 0x00000100 + +//================================================== +// CFire +//================================================== + +enum fireType_e +{ + FIRE_NATURAL = 0, + FIRE_PLASMA, +}; + +//================================================== + +// NPCs and grates do not prevent fire from travelling +#define MASK_FIRE_SOLID ( MASK_SOLID & (~(CONTENTS_MONSTER|CONTENTS_GRATE)) ) + +//================================================== +// FireSystem +//================================================== +bool FireSystem_StartFire( const Vector &position, float fireHeight, float attack, float fuel, int flags, CBaseEntity *owner, fireType_e type = FIRE_NATURAL); +void FireSystem_ExtinguishInRadius( const Vector &origin, float radius, float rate ); +void FireSystem_AddHeatInRadius( const Vector &origin, float radius, float heat ); + +bool FireSystem_GetFireDamageDimensions( CBaseEntity *pFire, Vector *pFireMins, Vector *pFireMaxs ); + +#endif // FIRE_H |