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

Grief: meat powerup able to drop when players are down

This commit is contained in:
Jbleezy
2021-12-13 23:07:43 -08:00
parent 49387b1d30
commit bc9682baa3
2 changed files with 21 additions and 0 deletions

View File

@ -149,6 +149,7 @@ set_grief_vars()
level.zombie_vars["zombie_health_increase"] = 0;
level.zombie_vars["zombie_health_increase_multiplier"] = 0;
level.zombie_vars["zombie_spawn_delay"] = 0.5;
level.zombie_powerups["meat_stink"].func_should_drop_with_regular_powerups = ::func_should_drop_meat;
level.brutus_health = 20000;
level.brutus_expl_dmg_req = 12000;
level.global_damage_func = ::zombie_damage;
@ -1594,6 +1595,25 @@ handle_post_board_repair_rewards( cost, zbarrier )
}
}
func_should_drop_meat()
{
players = get_players();
foreach(player in players)
{
if(player getCurrentWeapon() == "meat_zm")
{
return 0;
}
}
if(isDefined(level.item_meat) || is_true(level.meat_on_ground))
{
return 0;
}
return 1;
}
borough_move_quickrevive_machine()
{
if (level.scr_zm_map_start_location != "street")