Browse Source

Improve coop frags adding

gravgun
mittorn 6 years ago
parent
commit
9d27e6f3ea
  1. 12
      dlls/combat.cpp

12
dlls/combat.cpp

@ -607,7 +607,7 @@ void CBaseMonster::Killed( entvars_t *pevAttacker, int iGib ) @@ -607,7 +607,7 @@ void CBaseMonster::Killed( entvars_t *pevAttacker, int iGib )
if( mp_coop.value )
{
int classs = Classify();
if( !mp_coop_nofriendlyfire.value && classs == CLASS_HUMAN_PASSIVE || classs == CLASS_PLAYER_ALLY )
if( !mp_coop_nofriendlyfire.value && ( classs == CLASS_HUMAN_PASSIVE || classs == CLASS_PLAYER_ALLY ) )
{
if( activator && activator->IsPlayer() )
{
@ -615,8 +615,16 @@ void CBaseMonster::Killed( entvars_t *pevAttacker, int iGib ) @@ -615,8 +615,16 @@ void CBaseMonster::Killed( entvars_t *pevAttacker, int iGib )
activator->AddPoints( 0, true );
}
}
else if( classs >= 5 )
else if( classs >= 4 )
{
int points = 1;
if( classs == CLASS_HUMAN_MILITARY )
points = 2;
if( classs == CLASS_ALIEN_MILITARY )
points = 2;
if( classs == CLASS_ALIEN_PREDATOR )
points = 3;
if( activator && activator->IsPlayer() )
activator->AddPoints( 1, true );
}

Loading…
Cancel
Save