From 158196dac0862ad48fb84d22064530f73fadb91b Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Wed, 31 May 2023 05:55:55 -0700 Subject: [PATCH] Encounter: allow team change on private matches --- README.md | 9 ++++++++- scripts/zm/replaced/_zm.gsc | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 283ae001..ad35067a 100644 --- a/README.md +++ b/README.md @@ -925,4 +925,11 @@ * ```set ui_gametype_obj zcontainment``` ### Meat -* ```set ui_gametype_obj zmeat``` \ No newline at end of file +* ```set ui_gametype_obj zmeat``` + +## Changing Teams (Grief) + +* By default, teams are random on Grief +* Copy and paste the following commands into the console to add the option to change teams in the in-game menu + +* ```gts allowInGameTeamChange 1; set ui_gametype_team_change 1``` \ No newline at end of file diff --git a/scripts/zm/replaced/_zm.gsc b/scripts/zm/replaced/_zm.gsc index c9965eef..dfccd1fa 100644 --- a/scripts/zm/replaced/_zm.gsc +++ b/scripts/zm/replaced/_zm.gsc @@ -617,7 +617,7 @@ fade_out_intro_screen_zm( hold_black_time, fade_out_time, destroyed_afterwards ) flag_set( "hud_visible" ); - if ( isDedicated() ) + if ( isDedicated() || ( is_gametype_active("zgrief") && getDvarInt("ui_gametype_team_change") ) ) { level thread wait_for_all_players_ready();