|
|
@ -104,7 +104,7 @@ int CM41A::GetItemInfo(ItemInfo *p) |
|
|
|
|
|
|
|
|
|
|
|
int CM41A::AddToPlayer( CBasePlayer *pPlayer ) |
|
|
|
int CM41A::AddToPlayer( CBasePlayer *pPlayer ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ( CBasePlayerWeapon::AddToPlayer( pPlayer ) ) |
|
|
|
if( CBasePlayerWeapon::AddToPlayer( pPlayer ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MESSAGE_BEGIN( MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev ); |
|
|
|
MESSAGE_BEGIN( MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev ); |
|
|
|
WRITE_BYTE( m_iId ); |
|
|
|
WRITE_BYTE( m_iId ); |
|
|
@ -163,9 +163,9 @@ void CM41A::PrimaryAttack() |
|
|
|
Vector vecDir; |
|
|
|
Vector vecDir; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef CLIENT_DLL |
|
|
|
#ifdef CLIENT_DLL |
|
|
|
if ( !bIsMultiplayer() ) |
|
|
|
if ( bIsMultiplayer() ) |
|
|
|
#else |
|
|
|
#else |
|
|
|
if ( !g_pGameRules->IsMultiplayer() ) |
|
|
|
if ( g_pGameRules->IsMultiplayer() ) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
{ |
|
|
|
{ |
|
|
|
// optimized multiplayer. Widened to make it easier to hit a moving player
|
|
|
|
// optimized multiplayer. Widened to make it easier to hit a moving player
|
|
|
|