1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Made everything into a function

This commit is contained in:
Jbleezy 2020-02-13 17:05:06 -08:00
parent bc6a56ae44
commit 63ff9d47bb
2 changed files with 27 additions and 9 deletions

View File

@ -77,7 +77,7 @@
### Tranzit
* Pack-a-Punch door is automatically open whenever the power is on
### Town
#### Town
* Moved Stamin-Up to its location on Tranzit
#### Farm

View File

@ -69,7 +69,13 @@ post_all_players_spawned()
zone_changes();
electric_trap_always_kill();
jetgun_disable_explode_overheat();
//jetgun_increase_grind_range(); // not working
slipgun_always_kill();
slipgun_disable_reslip();
//disable_pers_upgrades(); // TODO
@ -93,14 +99,6 @@ post_all_players_spawned()
level thread tomb_remove_shovels_from_map();
// not working
//level.zombies_vars["jetgun_grind_range"] = 256;
level.etrap_damage = maps/mp/zombies/_zm::ai_zombie_health( 255 );
level.zombie_vars["slipgun_reslip_rate"] = 0;
level.slipgun_damage = maps/mp/zombies/_zm::ai_zombie_health( 255 );
//level.round_number = 115;
//level.zombie_move_speed = 105;
//level.zombie_vars[ "zombie_spawn_delay" ] = 0.08;
@ -449,6 +447,16 @@ enemies_ignore_equipments()
maps/mp/zombies/_zm_equipment::enemies_ignore_equipment("riotshield_zm");
}
electric_trap_always_kill()
{
level.etrap_damage = maps/mp/zombies/_zm::ai_zombie_health( 255 );
}
jetgun_increase_grind_range()
{
level.zombies_vars["jetgun_grind_range"] = 256;
}
jetgun_fast_cooldown()
{
self endon( "death_or_disconnect" );
@ -591,6 +599,16 @@ jetgun_remove_forced_weapon_switch()
}
}
slipgun_always_kill()
{
level.slipgun_damage = maps/mp/zombies/_zm::ai_zombie_health( 255 );
}
slipgun_disable_reslip()
{
level.zombie_vars["slipgun_reslip_rate"] = 0;
}
on_equipment_placed()
{
self endon( "death" );