1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-16 18:18:08 -05:00

Meat on Cell Block: remove meat from wolf powerups

This commit is contained in:
Jbleezy
2023-02-26 20:13:34 -08:00
parent 79ee242c80
commit 910eaa8f39
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,52 @@
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\zombies\_zm_utility;
#include maps\mp\zm_alcatraz_weap_quest;
wolf_spit_out_powerup()
{
if ( !( isdefined( level.enable_magic ) && level.enable_magic ) )
return;
power_origin_struct = getstruct( "wolf_puke_powerup_origin", "targetname" );
if ( level.scr_zm_ui_gametype_obj != "zmeat" && randomint( 100 ) < 20 )
{
for ( i = 0; i < level.zombie_powerup_array.size; i++ )
{
if ( level.zombie_powerup_array[i] == "meat_stink" )
{
level.zombie_powerup_index = i;
found = 1;
break;
}
}
}
else
{
while ( true )
{
level.zombie_powerup_index = randomint( level.zombie_powerup_array.size );
if ( level.zombie_powerup_array[level.zombie_powerup_index] == "nuke" )
{
wait 0.05;
continue;
}
if ( level.scr_zm_ui_gametype_obj == "zmeat" && level.zombie_powerup_array[level.zombie_powerup_index] == "meat_stink" )
{
wait 0.05;
continue;
}
break;
}
}
spawn_infinite_powerup_drop( power_origin_struct.origin, level.zombie_powerup_array[level.zombie_powerup_index] );
power_ups = get_array_of_closest( power_origin_struct.origin, level.active_powerups, undefined, undefined, 100 );
if ( isdefined( power_ups[0] ) )
power_ups[0] movez( 120, 4 );
}

View File

@ -12,6 +12,7 @@
main()
{
replaceFunc(maps\mp\zm_alcatraz_classic::give_afterlife, scripts\zm\replaced\zm_alcatraz_classic::give_afterlife);
replaceFunc(maps\mp\zm_alcatraz_weap_quest::wolf_spit_out_powerup, scripts\zm\replaced\zm_alcatraz_weap_quest::wolf_spit_out_powerup);
replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_add, scripts\zm\replaced\_zm_afterlife::afterlife_add);
replaceFunc(maps\mp\zombies\_zm_ai_brutus::brutus_spawn, scripts\zm\replaced\_zm_ai_brutus::brutus_spawn);
replaceFunc(maps\mp\zombies\_zm_ai_brutus::brutus_health_increases, scripts\zm\replaced\_zm_ai_brutus::brutus_health_increases);