1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -05:00

Grief: add bleedout score

This commit is contained in:
Jbleezy
2021-12-10 14:18:03 -08:00
parent 408effc4f4
commit 3e71c9e8ec
2 changed files with 15 additions and 0 deletions

View File

@ -245,6 +245,7 @@
* Players can be stunned from melee by enemy players while already stunned
* Stunning enemy players steals 10 points from them
* Downing enemy players awards 5% of their current points
* Bleeding out enemy players awards 10% of your current points to all teammates
* Landing on top of an enemy player downs them
* Added kill feed (includes downs, revives, and bleedouts)
* Added player kills on scoreboard

View File

@ -204,6 +204,7 @@ on_player_bleedout()
self.statusicon = "hud_status_dead";
self bleedout_feed();
self add_grief_bleedout_score();
level thread update_players_on_bleedout( self );
}
}
@ -262,6 +263,19 @@ add_grief_downed_score()
}
}
add_grief_bleedout_score()
{
players = get_players();
foreach(player in players)
{
if(is_player_valid(player) && player.team != self.team)
{
points = round_up_to_ten(int(player.score * level.zombie_vars["penalty_no_revive"]));
player maps/mp/zombies/_zm_score::add_to_player_score(points);
}
}
}
init_round_start_wait(time)
{
flag_clear("spawn_zombies");