summaryrefslogtreecommitdiff
path: root/game/server/cstrike/func_bomb_target.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/cstrike/func_bomb_target.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/cstrike/func_bomb_target.h')
-rw-r--r--game/server/cstrike/func_bomb_target.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/game/server/cstrike/func_bomb_target.h b/game/server/cstrike/func_bomb_target.h
new file mode 100644
index 0000000..090b81d
--- /dev/null
+++ b/game/server/cstrike/func_bomb_target.h
@@ -0,0 +1,37 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Bomb Target Area ent
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#include "cbase.h"
+#include "triggers.h"
+
+class CBombTarget : public CBaseTrigger
+{
+public:
+ DECLARE_CLASS( CBombTarget, CBaseTrigger );
+ DECLARE_DATADESC();
+
+ CBombTarget();
+
+ void Spawn();
+ void EXPORT BombTargetTouch( CBaseEntity* pOther );
+ void EXPORT BombTargetUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
+
+ void OnBombExplode( inputdata_t &inputdata );
+ void OnBombPlanted( inputdata_t &inputdata );
+ void OnBombDefused( inputdata_t &inputdata );
+
+ bool IsHeistBombTarget( void ) { return m_bIsHeistBombTarget; }
+ const char *GetBombMountTarget( void ){ return STRING( m_szMountTarget ); }
+
+private:
+ COutputEvent m_OnBombExplode; //Fired when the bomb explodes
+ COutputEvent m_OnBombPlanted; //Fired when the bomb is planted
+ COutputEvent m_OnBombDefused; //Fired when the bomb is defused
+
+ bool m_bIsHeistBombTarget;
+ string_t m_szMountTarget;
+}; \ No newline at end of file