From 4810cf33888f107ab1c77a821dd0fe6986b12497 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 17 Dec 2021 15:59:49 -0800 Subject: [PATCH] Grief: add intro text --- README.md | 1 + scripts/zm/main/_zm_reimagined_zgrief.gsc | 26 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/README.md b/README.md index c000c32f..6902c94c 100644 --- a/README.md +++ b/README.md @@ -266,6 +266,7 @@ * Added player downed and bled out icons on scoreboard * Removed Monkey Bombs from the Mystery Box * Meat powerup is able to drop when players are down +* Added intro text * Announcer audio always plays * Last player alive audio only plays for the player who is alive instead of every player on the team * Enemies remaining audio and text displays when enemy players down instead of when enemy players bleed out diff --git a/scripts/zm/main/_zm_reimagined_zgrief.gsc b/scripts/zm/main/_zm_reimagined_zgrief.gsc index 5d2c289b..268ccf84 100644 --- a/scripts/zm/main/_zm_reimagined_zgrief.gsc +++ b/scripts/zm/main/_zm_reimagined_zgrief.gsc @@ -204,11 +204,20 @@ on_player_spawned() level endon("end_game"); self endon( "disconnect" ); + self.grief_initial_spawn = true; + while(1) { self waittill( "spawned_player" ); self.statusicon = ""; + + if(self.grief_initial_spawn) + { + self.grief_initial_spawn = false; + + self thread grief_intro_text(); + } } } @@ -621,6 +630,23 @@ update_players_on_disconnect(excluded_player) } } +grief_intro_text() +{ + flag_wait( "initial_blackscreen_passed" ); + + self iPrintLn("Welcome to Grief!"); + wait 3; + self iPrintLn("Your goal is to get all enemy players down."); + wait 3; + self iPrintLn("Shooting enemy players slows them down."); + wait 3; + self iPrintLn("Meleeing enemy players pushes them."); + wait 3; + self iPrintLn("First team to win 3 rounds wins the game."); + wait 3; + self iPrintLn("Good luck!"); +} + show_grief_hud_msg( msg, msg_parm, offset, delay ) { if(!isDefined(delay))