mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 18:05:23 +01:00
Merge 89efd616d6
This commit is contained in:
parent
2cb20f7b75
commit
c4820ad0df
@ -107,6 +107,13 @@ void CBaseEntity::UpdateOnRemove( void )
|
||||
|
||||
if( pev->globalname )
|
||||
gGlobalState.EntitySetState( pev->globalname, GLOBAL_DEAD );
|
||||
|
||||
// tell owner ( if any ) that we're dead.This is mostly for MonsterMaker functionality.
|
||||
//Killtarget didn't do this before, so the counter broke. - Solokiller
|
||||
if( CBaseEntity* pOwner = pev->owner ? Instance( pev->owner ) : 0 )
|
||||
{
|
||||
pOwner->DeathNotice( this );
|
||||
}
|
||||
}
|
||||
|
||||
// Convenient way to delay removing oneself
|
||||
|
Loading…
Reference in New Issue
Block a user