Fix male assassin unable to use weapons properly.
Remove zombie/gonome bullet resistance. Make it slighly harder to gib monsters. Small navigation fix. Fix compilation on Visual Studio 2015 and 2017. Fix "use_monstermod" keyvalue not working.
This commit is contained in:
@@ -351,16 +351,6 @@ int CMGonome::Classify(void)
|
||||
//=========================================================
|
||||
int CMGonome::TakeDamage(entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType)
|
||||
{
|
||||
// Take 15% damage from bullets
|
||||
if( bitsDamageType == DMG_BULLET )
|
||||
{
|
||||
Vector vecDir = pev->origin - (pevInflictor->absmin + pevInflictor->absmax) * 0.5;
|
||||
vecDir = vecDir.Normalize();
|
||||
float flForce = DamageForce( flDamage );
|
||||
pev->velocity = pev->velocity + vecDir * flForce;
|
||||
flDamage *= 0.15;
|
||||
}
|
||||
|
||||
// HACK HACK -- until we fix this.
|
||||
if( IsAlive() )
|
||||
PainSound();
|
||||
|
||||
Reference in New Issue
Block a user