aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/fire.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/server/fire.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/fire.h')
-rw-r--r--mp/src/game/server/fire.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/mp/src/game/server/fire.h b/mp/src/game/server/fire.h
new file mode 100644
index 00000000..25c515af
--- /dev/null
+++ b/mp/src/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