From a0de634d89596fe5e05ee33fd9cc2e6bcf64c66d Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Thu, 13 Aug 2020 11:47:19 -0700 Subject: [PATCH] added the missing function from cerberus --- zm_highrise_patch/maps/mp/zm_highrise.gsc | 26 ++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/zm_highrise_patch/maps/mp/zm_highrise.gsc b/zm_highrise_patch/maps/mp/zm_highrise.gsc index 40edac3..d1d34ee 100644 --- a/zm_highrise_patch/maps/mp/zm_highrise.gsc +++ b/zm_highrise_patch/maps/mp/zm_highrise.gsc @@ -1844,4 +1844,28 @@ elevator_traverse_watcher() //checked matches cerberus output } } - +highrise_special_weapon_magicbox_check(weapon) +{ + if ( is_true( level.raygun2_included ) ) + { + if ( weapon == "ray_gun_zm" ) + { + if(self has_weapon_or_upgrade( "raygun_mark2_zm" ) || maps/mp/zombies/_zm_chugabud::is_weapon_available_in_chugabud_corpse( "raygun_mark2_zm", self ) ) + { + return 0; + } + } + if ( weapon == "raygun_mark2_zm" ) + { + if ( self has_weapon_or_upgrade( "ray_gun_zm" ) || maps/mp/zombies/_zm_chugabud::is_weapon_available_in_chugabud_corpse( "ray_gun_zm", self ) ) + { + return 0; + } + if ( randomint( 100 ) >= 33 ) + { + return 0; + } + } + } + return 1; +}