mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Improve coop frags adding
This commit is contained in:
parent
c372e64f31
commit
9d27e6f3ea
@ -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 )
|
||||
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…
x
Reference in New Issue
Block a user