mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-18 02:58:13 -05:00
Race: gain points at the beginning of each round
This commit is contained in:
@ -500,6 +500,7 @@
|
|||||||
* Get 500 kills to win the game
|
* Get 500 kills to win the game
|
||||||
* Starts at round 1
|
* Starts at round 1
|
||||||
* Round increments every 60 seconds (up to round 20)
|
* Round increments every 60 seconds (up to round 20)
|
||||||
|
* Players gain points at the beginning of each round
|
||||||
* Players respawn after being down for 10 seconds
|
* Players respawn after being down for 10 seconds
|
||||||
|
|
||||||
#### Containment
|
#### Containment
|
||||||
|
@ -2212,6 +2212,7 @@ remove_status_icons_on_intermission()
|
|||||||
race_init()
|
race_init()
|
||||||
{
|
{
|
||||||
level.race_round_increment_time = 60;
|
level.race_round_increment_time = 60;
|
||||||
|
level.race_round_increment_points = 500;
|
||||||
level.race_round_max = 20;
|
level.race_round_max = 20;
|
||||||
|
|
||||||
level thread race_think();
|
level thread race_think();
|
||||||
@ -2274,6 +2275,12 @@ race_think()
|
|||||||
players = get_players();
|
players = get_players();
|
||||||
foreach(player in 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()))
|
if(isDefined(player get_player_placeable_mine()))
|
||||||
{
|
{
|
||||||
player giveweapon(player get_player_placeable_mine());
|
player giveweapon(player get_player_placeable_mine());
|
||||||
|
Reference in New Issue
Block a user