From 420e136d69b0325f90f8c9f144d77d3ba51fda8c Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 1 Apr 2023 01:05:05 -0700 Subject: [PATCH] Origins: change Mystery Box trade weapon hint string --- README.md | 4 +++ scripts/zm/replaced/zm_tomb_capture_zones.gsc | 25 +++++++++++++++++++ scripts/zm/zm_tomb/zm_tomb_reimagined.gsc | 1 + 3 files changed, 30 insertions(+) diff --git a/README.md b/README.md index 48a7ba58..e27f45da 100644 --- a/README.md +++ b/README.md @@ -410,6 +410,9 @@ * Changed player head chop damage to 50 (normally instantly kills without Juggernog or deals 15 damage with Juggernog) * Changed player body chop damage to 25 (normally deals 75 damage to torso or 37 damage to feet) +### Blundergat Upgrade +* Buildable table trigger requires look at + ### Maxis Drone * Added hint strings for purchased, can only be one, and cooling down * Buildable table model sits on top of the stand @@ -580,6 +583,7 @@ * Teleporters: placing gramophone activates The Crazy Place teleporters * Teleporters: players face away from the teleporters when returning from The Crazy Place * Teleporters: players can teleport while prone +* Mystery Box: uses the same trade weapon hint string as other maps * Der Wunderfizz: increased cost from 1500 to 2500 * Der Wunderfizz: all perks have an equal chance of being obtained * Rituals of the Ancients: spend points challenge reward changed from Double Tap perk to a random perk that the player does not have (perk does not change if reward is reopened) diff --git a/scripts/zm/replaced/zm_tomb_capture_zones.gsc b/scripts/zm/replaced/zm_tomb_capture_zones.gsc index 4e477de0..1775490e 100644 --- a/scripts/zm/replaced/zm_tomb_capture_zones.gsc +++ b/scripts/zm/replaced/zm_tomb_capture_zones.gsc @@ -379,4 +379,29 @@ recapture_round_start() recapture_round_audio_ends(); flag_clear( "recapture_event_in_progress" ); flag_clear( "generator_under_attack" ); +} + +magic_box_stub_update_prompt( player ) +{ + self setcursorhint( "HINT_NOICON" ); + + if ( !self trigger_visible_to_player( player ) ) + return false; + + self.stub.hint_parm1 = undefined; + + if ( isdefined( self.stub.trigger_target.grab_weapon_hint ) && self.stub.trigger_target.grab_weapon_hint ) + self.stub.hint_string = &"ZOMBIE_TRADE_WEAPON"; + else if ( !level.zone_capture.zones[self.stub.zone] ent_flag( "player_controlled" ) ) + { + self.stub.hint_string = &"ZM_TOMB_ZC"; + return false; + } + else + { + self.stub.hint_parm1 = self.stub.trigger_target.zombie_cost; + self.stub.hint_string = get_hint_string( self, "default_treasure_chest" ); + } + + return true; } \ No newline at end of file diff --git a/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc b/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc index 5d7a5631..b2dc74a8 100644 --- a/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc +++ b/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc @@ -46,6 +46,7 @@ main() replaceFunc(maps\mp\zm_tomb_ee_main_step_3::ready_to_activate, scripts\zm\replaced\zm_tomb_ee_main_step_3::ready_to_activate); replaceFunc(maps\mp\zm_tomb_ee_main_step_8::init, scripts\zm\replaced\zm_tomb_ee_main_step_8::init); replaceFunc(maps\mp\zm_tomb_capture_zones::setup_capture_zones, scripts\zm\replaced\zm_tomb_capture_zones::setup_capture_zones); + replaceFunc(maps\mp\zm_tomb_capture_zones::magic_box_stub_update_prompt, scripts\zm\replaced\zm_tomb_capture_zones::magic_box_stub_update_prompt); replaceFunc(maps\mp\zm_tomb_challenges::challenges_init, scripts\zm\replaced\zm_tomb_challenges::challenges_init); replaceFunc(maps\mp\zm_tomb_craftables::init_craftables, scripts\zm\replaced\zm_tomb_craftables::init_craftables); replaceFunc(maps\mp\zm_tomb_craftables::include_craftables, scripts\zm\replaced\zm_tomb_craftables::include_craftables);