mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 05:24:17 +00:00
Merge b15a0f9d56
This commit is contained in:
parent
5a2dccb978
commit
7e5145aaff
@ -80,6 +80,18 @@ int CCrowbar::GetItemInfo( ItemInfo *p )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CCrowbar::AddToPlayer( CBasePlayer *pPlayer )
|
||||||
|
{
|
||||||
|
if( CBasePlayerWeapon::AddToPlayer( pPlayer ) )
|
||||||
|
{
|
||||||
|
MESSAGE_BEGIN( MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev );
|
||||||
|
WRITE_BYTE( m_iId );
|
||||||
|
MESSAGE_END();
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
BOOL CCrowbar::Deploy()
|
BOOL CCrowbar::Deploy()
|
||||||
{
|
{
|
||||||
return DefaultDeploy( "models/v_crowbar.mdl", "models/p_crowbar.mdl", CROWBAR_DRAW, "crowbar" );
|
return DefaultDeploy( "models/v_crowbar.mdl", "models/p_crowbar.mdl", CROWBAR_DRAW, "crowbar" );
|
||||||
|
@ -86,6 +86,18 @@ int CGlock::GetItemInfo( ItemInfo *p )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CGlock::AddToPlayer( CBasePlayer *pPlayer )
|
||||||
|
{
|
||||||
|
if( CBasePlayerWeapon::AddToPlayer( pPlayer ) )
|
||||||
|
{
|
||||||
|
MESSAGE_BEGIN( MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev );
|
||||||
|
WRITE_BYTE( m_iId );
|
||||||
|
MESSAGE_END();
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
BOOL CGlock::Deploy()
|
BOOL CGlock::Deploy()
|
||||||
{
|
{
|
||||||
// pev->body = 1;
|
// pev->body = 1;
|
||||||
|
@ -463,7 +463,8 @@ public:
|
|||||||
void Spawn( void );
|
void Spawn( void );
|
||||||
void Precache( void );
|
void Precache( void );
|
||||||
int iItemSlot( void ) { return 2; }
|
int iItemSlot( void ) { return 2; }
|
||||||
int GetItemInfo(ItemInfo *p);
|
int GetItemInfo( ItemInfo *p );
|
||||||
|
int AddToPlayer( CBasePlayer *pPlayer );
|
||||||
|
|
||||||
void PrimaryAttack( void );
|
void PrimaryAttack( void );
|
||||||
void SecondaryAttack( void );
|
void SecondaryAttack( void );
|
||||||
@ -496,7 +497,8 @@ public:
|
|||||||
int iItemSlot( void ) { return 1; }
|
int iItemSlot( void ) { return 1; }
|
||||||
void EXPORT SwingAgain( void );
|
void EXPORT SwingAgain( void );
|
||||||
void EXPORT Smack( void );
|
void EXPORT Smack( void );
|
||||||
int GetItemInfo(ItemInfo *p);
|
int GetItemInfo( ItemInfo *p );
|
||||||
|
int AddToPlayer( CBasePlayer *pPlayer );
|
||||||
|
|
||||||
void PrimaryAttack( void );
|
void PrimaryAttack( void );
|
||||||
int Swing( int fFirst );
|
int Swing( int fFirst );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user