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/shared/tf/tf_weapon_grenade_smoke_bomb.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/tf/tf_weapon_grenade_smoke_bomb.h')
| -rw-r--r-- | game/shared/tf/tf_weapon_grenade_smoke_bomb.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/game/shared/tf/tf_weapon_grenade_smoke_bomb.h b/game/shared/tf/tf_weapon_grenade_smoke_bomb.h new file mode 100644 index 0000000..e31a7d0 --- /dev/null +++ b/game/shared/tf/tf_weapon_grenade_smoke_bomb.h @@ -0,0 +1,52 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: TF Gas Grenade. +// +//=============================================================================// +#ifndef TF_WEAPON_GRENADE_SMOKE_BOMB_H +#define TF_WEAPON_GRENADE_SMOKE_BOMB_H +#ifdef _WIN32 +#pragma once +#endif + +#include "tf_weaponbase_grenade.h" +#include "tf_weaponbase_grenadeproj.h" + +// Client specific. +#ifdef CLIENT_DLL +#define CTFGrenadeSmokeBomb C_TFGrenadeSmokeBomb +#endif + +//============================================================================= +// +// TF Gas Grenade +// +class CTFGrenadeSmokeBomb : public CTFWeaponBaseGrenade +{ +public: + + DECLARE_CLASS( CTFGrenadeSmokeBomb, CTFWeaponBaseGrenade ); + DECLARE_NETWORKCLASS(); + DECLARE_PREDICTABLE(); + // DECLARE_ACTTABLE(); + + CTFGrenadeSmokeBomb() {} + + // Unique identifier. + virtual int GetWeaponID( void ) const { return TF_WEAPON_GRENADE_SMOKE_BOMB; } + + // 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 ); + + virtual bool ShouldDetonate( void ); + +#endif + + CTFGrenadeSmokeBomb( const CTFGrenadeSmokeBomb & ) {} +}; + +#endif // TF_WEAPON_GRENADE_SMOKE_BOMB_H |