Browse Source

Make players not damage barneys and scientists, just damage yourself

hlzbot-dirty
mittorn 8 years ago
parent
commit
237bf1ea73
  1. 5
      dlls/barney.cpp
  2. 2
      dlls/combat.cpp
  3. 6
      dlls/scientist.cpp

5
dlls/barney.cpp

@ -512,7 +512,10 @@ int CBarney::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float @@ -512,7 +512,10 @@ int CBarney::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float
// Alright, now I'm pissed!
PlaySentence( "BA_MAD", 4, VOL_NORM, ATTN_NORM );
Remember( bits_MEMORY_PROVOKED );
if( pevAttacker->health <= 10 )
Forget( bits_MEMORY_PROVOKED );
else
Remember( bits_MEMORY_PROVOKED );
StopFollowing( TRUE );
}
else

2
dlls/combat.cpp

@ -890,7 +890,7 @@ int CBaseMonster::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, f @@ -890,7 +890,7 @@ int CBaseMonster::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, f
int classs = Classify();
if( classs == CLASS_HUMAN_PASSIVE || classs == CLASS_PLAYER_ALLY )
{
activator->TakeDamage( pevInflictor, pevAttacker, flDamage*1.5, bitsDamageType );
return 0;
}
}

6
dlls/scientist.cpp

@ -745,7 +745,11 @@ int CScientist::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, flo @@ -745,7 +745,11 @@ int CScientist::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, flo
{
if( pevInflictor && pevInflictor->flags & FL_CLIENT )
{
Remember( bits_MEMORY_PROVOKED );
if( pevAttacker->health <= 10 )
Forget( bits_MEMORY_PROVOKED );
else
Remember( bits_MEMORY_PROVOKED );
StopFollowing( TRUE );
}

Loading…
Cancel
Save