summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_weapon_grenade_normal.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/tf/tf_weapon_grenade_normal.h')
-rw-r--r--game/shared/tf/tf_weapon_grenade_normal.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/game/shared/tf/tf_weapon_grenade_normal.h b/game/shared/tf/tf_weapon_grenade_normal.h
new file mode 100644
index 0000000..0e9b5fa
--- /dev/null
+++ b/game/shared/tf/tf_weapon_grenade_normal.h
@@ -0,0 +1,78 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: TF Normal Grenade.
+//
+//=============================================================================//
+#ifndef TF_WEAPON_GRENADE_NORMAL_H
+#define TF_WEAPON_GRENADE_NORMAL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "tf_weaponbase_grenade.h"
+#include "tf_weaponbase_grenadeproj.h"
+
+// Client specific.
+#ifdef CLIENT_DLL
+#define CTFGrenadeNormal C_TFGrenadeNormal
+#endif
+
+//=============================================================================
+//
+// TF Normal Grenade
+//
+class CTFGrenadeNormal : public CTFWeaponBaseGrenade
+{
+public:
+
+ DECLARE_CLASS( CTFGrenadeNormal, CTFWeaponBaseGrenade );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+// DECLARE_ACTTABLE();
+
+ CTFGrenadeNormal() {}
+
+ // Unique identifier.
+ virtual int GetWeaponID( void ) const { return TF_WEAPON_GRENADE_NORMAL; }
+
+// Server specific.
+#ifdef GAME_DLL
+
+ DECLARE_DATADESC();
+
+ virtual CTFWeaponBaseGrenadeProj *EmitGrenade( Vector vecSrc, QAngle vecAngles, Vector vecVel, AngularImpulse angImpulse, CBasePlayer *pPlayer, float flTime, int iflags = 0 );
+
+#endif
+
+ CTFGrenadeNormal( const CTFGrenadeNormal & ) {}
+};
+
+//=============================================================================
+//
+// TF Normal Grenade Projectile (Server specific.)
+//
+#ifdef GAME_DLL
+
+class CTFGrenadeNormalProjectile : public CTFWeaponBaseGrenadeProj
+{
+public:
+
+ DECLARE_CLASS( CTFGrenadeNormalProjectile, CTFWeaponBaseGrenadeProj );
+
+ // Unique identifier.
+ virtual int GetWeaponID( void ) const { return TF_WEAPON_GRENADE_NORMAL; }
+
+ // Creation.
+ static CTFGrenadeNormalProjectile *Create( const Vector &position, const QAngle &angles, const Vector &velocity,
+ const AngularImpulse &angVelocity, CBaseCombatCharacter *pOwner, const CTFWeaponInfo &weaponInfo, float timer, int iFlags = 0 );
+
+ // Overrides.
+ virtual void Spawn();
+ virtual void Precache();
+ virtual void BounceSound( void );
+ virtual void Detonate();
+};
+
+#endif
+
+#endif // TF_WEAPON_GRENADE_NORMAL_H