1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-17 18:48:03 -05:00

Race: gain points at the beginning of each round

This commit is contained in:
Jbleezy
2022-02-05 01:45:25 -08:00
parent 204dc9a703
commit cbbfb1d887
2 changed files with 8 additions and 0 deletions

View File

@ -2212,6 +2212,7 @@ remove_status_icons_on_intermission()
race_init()
{
level.race_round_increment_time = 60;
level.race_round_increment_points = 500;
level.race_round_max = 20;
level thread race_think();
@ -2274,6 +2275,12 @@ race_think()
players = get_players();
foreach(player in players)
{
if(is_player_valid(player))
{
score = level.race_round_increment_points * maps/mp/zombies/_zm_score::get_points_multiplier(player);
player maps/mp/zombies/_zm_score::add_to_player_score(score);
}
if(isDefined(player get_player_placeable_mine()))
{
player giveweapon(player get_player_placeable_mine());