1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-07 12:29:04 -05:00

Grief: add stun points

This commit is contained in:
Jbleezy
2021-12-05 03:36:03 -08:00
parent 19f4779329
commit 25e788afb6
2 changed files with 10 additions and 0 deletions

View File

@ -401,6 +401,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
}
}
self thread add_grief_score(eattacker);
self thread do_game_mode_shellshock();
self playsound( "zmb_player_hit_ding" );
}
@ -411,6 +412,14 @@ do_game_mode_shellshock()
self shellshock( "grief_stab_zm", 0.5 );
}
add_grief_score(attacker)
{
if(is_player_valid(attacker) && self.health < self.maxhealth)
{
attacker maps/mp/zombies/_zm_score::add_to_player_score(10);
}
}
unlimited_zombies()
{
while(1)