summaryrefslogtreecommitdiff
path: root/game/server/tf/halloween/spell/tf_spell_pickup.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/tf/halloween/spell/tf_spell_pickup.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/tf/halloween/spell/tf_spell_pickup.h')
-rw-r--r--game/server/tf/halloween/spell/tf_spell_pickup.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/game/server/tf/halloween/spell/tf_spell_pickup.h b/game/server/tf/halloween/spell/tf_spell_pickup.h
new file mode 100644
index 0000000..1e8c4f2
--- /dev/null
+++ b/game/server/tf/halloween/spell/tf_spell_pickup.h
@@ -0,0 +1,37 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Spell.
+//
+//=============================================================================//
+#ifndef TF_SPELL_PICKUP_H
+#define TF_SPELL_PICKUP_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "tf_powerup.h"
+class CSpellPickup : public CTFPowerup
+{
+ DECLARE_CLASS( CSpellPickup, CTFPowerup )
+ DECLARE_DATADESC();
+
+public:
+ CSpellPickup();
+
+ virtual void Spawn( void ) OVERRIDE;
+ virtual void Precache() OVERRIDE;
+
+ virtual bool MyTouch( CBasePlayer *pPlayer ) OVERRIDE;
+ virtual const char *GetPowerupModel( void ) OVERRIDE;
+ virtual const char *GetDefaultPowerupModel( void ) OVERRIDE { return "models/props_halloween/hwn_spellbook_upright.mdl"; }
+ virtual bool ItemCanBeTouchedByPlayer( CBasePlayer *pPlayer ) OVERRIDE;
+
+ void SetTier( int nTier ) { m_nTier = nTier; }
+
+private:
+
+ int m_nTier;
+};
+
+#endif // TF_SPELL_PICKUP_H