blob: 5a6c32ccc47bd01fc37d49b4b06276a25c38856b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// TF Nail Projectile
//
//=============================================================================
#ifndef TF_PROJECTILE_NAIL_H
#define TF_PROJECTILE_NAIL_H
#ifdef _WIN32
#pragma once
#endif
#include "cbase.h"
#include "tf_projectile_base.h"
#include "tf_weaponbase_gun.h"
//-----------------------------------------------------------------------------
// Purpose: Identical to a nail except for model used
//-----------------------------------------------------------------------------
class CTFProjectile_Syringe : public CTFBaseProjectile
{
DECLARE_CLASS( CTFProjectile_Syringe, CTFBaseProjectile );
public:
// Creation.
static CTFBaseProjectile *Create( const Vector &vecOrigin, const QAngle &vecAngles, CTFWeaponBaseGun *pLauncher = NULL, CBaseEntity *pOwner = NULL, CBaseEntity *pScorer = NULL, bool bCritical = false );
virtual unsigned int PhysicsSolidMaskForEntity( void ) const;
virtual const char *GetProjectileModelName( void ) { return "models/weapons/w_models/w_syringe_proj.mdl"; }
virtual float GetGravity( void );
};
#ifdef STAGING_ONLY
//-----------------------------------------------------------------------------
class CTFProjectile_Tranq : public CTFProjectile_Syringe
{
DECLARE_CLASS( CTFProjectile_Tranq, CTFProjectile_Syringe );
public:
// Creation.
static CTFBaseProjectile *Create( const Vector &vecOrigin, const QAngle &vecAngles, CTFWeaponBaseGun *pLauncher = NULL, CBaseEntity *pOwner = NULL, CBaseEntity *pScorer = NULL, bool bCritical = false );
virtual const char *GetProjectileModelName( void ) { return "models/weapons/w_models/w_syringe_proj.mdl"; }
virtual float GetGravity( void );
#ifdef GAME_DLL
virtual void ProjectileTouch( CBaseEntity *pOther );
#endif // GAME_DLL
};
#endif // STAGING_ONLY
#endif //TF_PROJECTILE_NAIL_H
|