mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 13:31:18 +00:00
Update Actor.cpp
This commit is contained in:
parent
dab88884ef
commit
5da74b9cf1
1 changed files with 5 additions and 1 deletions
|
@ -2134,6 +2134,10 @@ void idActor::Gib( const idVec3 &dir, const char *damageDefName ) {
|
|||
if ( head.GetEntity() ) {
|
||||
head.GetEntity()->Hide();
|
||||
}
|
||||
// darknar
|
||||
if (spawnArgs.GetBool("gib_remove")) {
|
||||
Hide();
|
||||
}
|
||||
StopSound( SND_CHANNEL_VOICE, false );
|
||||
}
|
||||
|
||||
|
@ -2191,7 +2195,7 @@ void idActor::Damage( idEntity *inflictor, idEntity *attacker, const idVec3 &dir
|
|||
health = -999;
|
||||
}
|
||||
Killed( inflictor, attacker, damage, dir, location );
|
||||
if ( ( health < -20 ) && spawnArgs.GetBool( "gib" ) && damageDef->GetBool( "gib" ) ) {
|
||||
if ( ( health < spawnArgs.GetInt("health_gib") ) && spawnArgs.GetBool( "gib" ) && damageDef->GetBool( "gib" ) ) { // darknar
|
||||
Gib( dir, damageDefName );
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue