Browse Source

Fix knowledge bugs with satchels again.

halloween
Night Owl 7 years ago
parent
commit
cbdf9b5d04
  1. 6
      dlls/client.cpp
  2. 6
      dlls/multiplay_gamerules.cpp
  3. 1
      dlls/player.cpp

6
dlls/client.cpp

@ -127,12 +127,6 @@ void ClientDisconnect( edict_t *pEntity ) @@ -127,12 +127,6 @@ void ClientDisconnect( edict_t *pEntity )
pEntity->v.solid = SOLID_NOT;// nonsolid
UTIL_SetOrigin( &pEntity->v, pEntity->v.origin );
CBasePlayer *pl = (CBasePlayer *)CBaseEntity::Instance( pEntity );
if( pl->HasNamedPlayerItem( "weapon_satchel" ) )
{
DeactivateSatchels( pl );
}
g_pGameRules->ClientDisconnected( pEntity );
}

6
dlls/multiplay_gamerules.cpp

@ -675,12 +675,6 @@ void CHalfLifeMultiplay::PlayerKilled( CBasePlayer *pVictim, entvars_t *pKiller, @@ -675,12 +675,6 @@ void CHalfLifeMultiplay::PlayerKilled( CBasePlayer *pVictim, entvars_t *pKiller,
// let the killer paint another decal as soon as he'd like.
PK->m_flNextDecalTime = gpGlobals->time;
}
#ifndef HLDEMO_BUILD
if( pVictim->HasNamedPlayerItem( "weapon_satchel" ) )
{
DeactivateSatchels( pVictim );
}
#endif
}
//=========================================================

1
dlls/player.cpp

@ -826,6 +826,7 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit ) @@ -826,6 +826,7 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
m_rgAmmo[i] = 0;
DeactivateSatchels( this );
UpdateClientData();
// send Selected Weapon Message to our client

Loading…
Cancel
Save