mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 07:08:06 -05:00
Move replaced functions into separate scripts
This commit is contained in:
42
scripts/zm/replaced/zm_transit.gsc
Normal file
42
scripts/zm/replaced/zm_transit.gsc
Normal file
@ -0,0 +1,42 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
lava_damage_depot()
|
||||
{
|
||||
trigs = getentarray( "lava_damage", "targetname" );
|
||||
volume = getent( "depot_lava_volume", "targetname" );
|
||||
exploder( 2 );
|
||||
|
||||
foreach ( trigger in trigs )
|
||||
{
|
||||
if ( isDefined( trigger.script_string ) && trigger.script_string == "depot_lava" )
|
||||
{
|
||||
trig = trigger;
|
||||
}
|
||||
}
|
||||
|
||||
if ( isDefined( trig ) )
|
||||
{
|
||||
trig.script_float = 0.05;
|
||||
}
|
||||
|
||||
flag_wait( "power_on" );
|
||||
|
||||
while ( !volume maps/mp/zm_transit::depot_lava_seen() )
|
||||
{
|
||||
wait 0.05;
|
||||
}
|
||||
|
||||
if ( isDefined( trig ) )
|
||||
{
|
||||
trig.script_float = 0.4;
|
||||
earthquake( 0.5, 1.5, trig.origin, 1000 );
|
||||
level clientnotify( "earth_crack" );
|
||||
crust = getent( "depot_black_lava", "targetname" );
|
||||
crust delete();
|
||||
}
|
||||
|
||||
stop_exploder( 2 );
|
||||
exploder( 3 );
|
||||
}
|
Reference in New Issue
Block a user