1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-25 14:40:32 -05:00

Der Wunderfizz: moves to new location instantly

This commit is contained in:
Jbleezy
2023-05-06 15:59:21 -07:00
parent 859fe11c82
commit 7aaea0fb4a
3 changed files with 26 additions and 0 deletions

View File

@ -9,6 +9,30 @@
#include maps\mp\zombies\_zm_perks;
#include maps\mp\zombies\_zm_perk_random;
machine_selector()
{
while ( true )
{
level waittill( "random_perk_moving" );
machines = getentarray( "random_perk_machine", "targetname" );
if ( machines.size == 1 )
{
new_machine = machines[0];
new_machine thread machine_think();
continue;
}
do
new_machine = machines[randomint( machines.size )];
while ( new_machine == level.random_perk_start_machine );
level.random_perk_start_machine = new_machine;
new_machine thread machine_think();
}
}
trigger_visible_to_player( player )
{
self setinvisibletoplayer( player );

View File

@ -78,6 +78,7 @@ main()
replaceFunc(maps\mp\zombies\_zm_craftables::craftable_use_hold_think_internal, scripts\zm\replaced\_zm_craftables::craftable_use_hold_think_internal);
replaceFunc(maps\mp\zombies\_zm_craftables::player_progress_bar_update, scripts\zm\replaced\_zm_craftables::player_progress_bar_update);
replaceFunc(maps\mp\zombies\_zm_craftables::update_open_table_status, scripts\zm\replaced\_zm_craftables::update_open_table_status);
replaceFunc(maps\mp\zombies\_zm_perk_random::machine_selector, scripts\zm\replaced\_zm_perk_random::machine_selector);
replaceFunc(maps\mp\zombies\_zm_perk_random::trigger_visible_to_player, scripts\zm\replaced\_zm_perk_random::trigger_visible_to_player);
replaceFunc(maps\mp\zombies\_zm_powerup_zombie_blood::zombie_blood_powerup, scripts\zm\replaced\_zm_powerup_zombie_blood::zombie_blood_powerup);
replaceFunc(maps\mp\zombies\_zm_riotshield_tomb::doriotshielddeploy, scripts\zm\replaced\_zm_riotshield_tomb::doriotshielddeploy);