mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Fix knowledge bugs with satchels again.
This commit is contained in:
parent
a383a57a09
commit
cbdf9b5d04
@ -127,12 +127,6 @@ void ClientDisconnect( edict_t *pEntity )
|
|||||||
pEntity->v.solid = SOLID_NOT;// nonsolid
|
pEntity->v.solid = SOLID_NOT;// nonsolid
|
||||||
UTIL_SetOrigin( &pEntity->v, pEntity->v.origin );
|
UTIL_SetOrigin( &pEntity->v, pEntity->v.origin );
|
||||||
|
|
||||||
CBasePlayer *pl = (CBasePlayer *)CBaseEntity::Instance( pEntity );
|
|
||||||
if( pl->HasNamedPlayerItem( "weapon_satchel" ) )
|
|
||||||
{
|
|
||||||
DeactivateSatchels( pl );
|
|
||||||
}
|
|
||||||
|
|
||||||
g_pGameRules->ClientDisconnected( pEntity );
|
g_pGameRules->ClientDisconnected( pEntity );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -675,12 +675,6 @@ void CHalfLifeMultiplay::PlayerKilled( CBasePlayer *pVictim, entvars_t *pKiller,
|
|||||||
// let the killer paint another decal as soon as he'd like.
|
// let the killer paint another decal as soon as he'd like.
|
||||||
PK->m_flNextDecalTime = gpGlobals->time;
|
PK->m_flNextDecalTime = gpGlobals->time;
|
||||||
}
|
}
|
||||||
#ifndef HLDEMO_BUILD
|
|
||||||
if( pVictim->HasNamedPlayerItem( "weapon_satchel" ) )
|
|
||||||
{
|
|
||||||
DeactivateSatchels( pVictim );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=========================================================
|
//=========================================================
|
||||||
|
@ -826,6 +826,7 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
|
|||||||
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
|
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
|
||||||
m_rgAmmo[i] = 0;
|
m_rgAmmo[i] = 0;
|
||||||
|
|
||||||
|
DeactivateSatchels( this );
|
||||||
UpdateClientData();
|
UpdateClientData();
|
||||||
|
|
||||||
// send Selected Weapon Message to our client
|
// send Selected Weapon Message to our client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user