1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-07 20:38:09 -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 );