mirror of https://github.com/FWGS/hlsdk-xash3d
37 lines
731 B
C++
Executable File
37 lines
731 B
C++
Executable File
|
|
#ifndef SWORDCANE_H
|
|
#define SWORDCANE_H
|
|
|
|
|
|
class CSwordcane : public CBasePlayerWeapon
|
|
{
|
|
public:
|
|
void Spawn( void );
|
|
void Precache( void );
|
|
int iItemSlot( void ) { return 0; }
|
|
void EXPORT SwingAgain( void );
|
|
void EXPORT Smack( void );
|
|
int GetItemInfo(ItemInfo *p);
|
|
int AddToPlayer( CBasePlayer *pPlayer );
|
|
void FindHullIntersection( const Vector &vecSrc, TraceResult &tr, float *mins, float *maxs, edict_t *pEntity );
|
|
|
|
void PrimaryAttack( void );
|
|
int Swing( int fFirst );
|
|
BOOL Deploy( void );
|
|
void Holster( int skiplocal = 0 );
|
|
int m_iSwing;
|
|
TraceResult m_trHit;
|
|
void WeaponIdle( void );
|
|
|
|
virtual BOOL UseDecrement( void )
|
|
{
|
|
#if defined( CLIENT_WEAPONS )
|
|
return TRUE;
|
|
#else
|
|
return FALSE;
|
|
#endif
|
|
}
|
|
};
|
|
|
|
|
|
#endif |