Added CBaseCombatWeapon script description

This commit is contained in:
Blixibon
2020-05-24 01:03:18 -05:00
parent c06bf1e1c4
commit daae8caf20
2 changed files with 72 additions and 0 deletions

View File

@@ -196,6 +196,9 @@ public:
DECLARE_CLASS( CBaseCombatWeapon, BASECOMBATWEAPON_DERIVED_FROM );
DECLARE_NETWORKCLASS();
DECLARE_PREDICTABLE();
#ifdef MAPBASE_VSCRIPT
DECLARE_ENT_SCRIPTDESC();
#endif
CBaseCombatWeapon();
virtual ~CBaseCombatWeapon();
@@ -446,6 +449,12 @@ public:
virtual void Activate( void );
virtual bool ShouldUseLargeViewModelVROverride() { return false; }
#ifdef MAPBASE_VSCRIPT
void ScriptSetClip1( int ammo ) { m_iClip1 = ammo; }
void ScriptSetClip2( int ammo ) { m_iClip2 = ammo; }
#endif
public:
// Server Only Methods
#if !defined( CLIENT_DLL )
@@ -510,6 +519,11 @@ public:
virtual CDmgAccumulator *GetDmgAccumulator( void ) { return NULL; }
#ifdef MAPBASE_VSCRIPT
const char* ScriptGetPrimaryAmmoType();
const char* ScriptGetSecondaryAmmoType();
#endif
// Client only methods
#else