From 4ef15c0f7c864ea074677e1303a7f3df28b2e610 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Tue, 1 Feb 2022 12:05:20 -0800 Subject: [PATCH] Encounter: choose random game mode from dvar --- README.md | 6 +++--- scripts/zm/zgrief/zgrief_reimagined.gsc | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 81590f16..c0d5c930 100644 --- a/README.md +++ b/README.md @@ -465,13 +465,13 @@ #### Grief * Gain score by making enemy players bleed out -* First team to make 25 enemy players bleed out wins the game +* Make 25 enemy players bleed out to win the game * Players respawn after being down for 10 seconds * Players retain perks #### Search & Rezurrect * Win rounds by getting all enemy players down -* First team to win 3 rounds wins the game +* Win 3 rounds to win the game * Tie round if both teams die within 5 seconds of eachother * Sudden death after 5 minute round (all players lose 100 health) * Players start each round with at least 10000 points @@ -486,7 +486,7 @@ #### Containment * Gain score by being the team with the most players alive in the containment zone -* First team to gain 250 score wins the game +* Gain 250 score to win the game * Contested if both teams have the same amount of players alive in the containment zone * Both teams gain score at half-rate when contested * Zombies only go after players in the containment zone diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index 4c879bfe..a1f9ef53 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -313,10 +313,11 @@ set_grief_vars() { if(getDvar("ui_gametype_obj") == "") { - setDvar("ui_gametype_obj", "zsnr"); + setDvar("ui_gametype_obj", "zgrief zsnr zrace zmeat zcontainment"); } - level.scr_zm_ui_gametype_obj = getDvar("ui_gametype_obj"); + gamemodes = strTok(getDvar("ui_gametype_obj"), " "); + level.scr_zm_ui_gametype_obj = random(gamemodes); level.noroundnumber = 1; level.zombie_powerups["meat_stink"].solo = 1;