mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 07:08:06 -05:00
Add Bus Depot files
This commit is contained in:
52
maps/mp/zm_transit_grief_station.gsc
Normal file
52
maps/mp/zm_transit_grief_station.gsc
Normal file
@ -0,0 +1,52 @@
|
||||
#include maps/mp/gametypes_zm/zmeat;
|
||||
#include maps/mp/zombies/_zm_game_module;
|
||||
#include maps/mp/zombies/_zm_perks;
|
||||
#include maps/mp/gametypes_zm/_zm_gametype;
|
||||
#include maps/mp/zombies/_zm_magicbox;
|
||||
#include maps/mp/zombies/_zm_utility;
|
||||
#include common_scripts/utility;
|
||||
#include maps/mp/_utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "zm_collision_transit_busdepot_survival" );
|
||||
}
|
||||
|
||||
station_treasure_chest_init()
|
||||
{
|
||||
chest1 = getstruct( "depot_chest", "script_noteworthy" );
|
||||
level.chests = [];
|
||||
level.chests[ level.chests.size ] = chest1;
|
||||
maps/mp/zombies/_zm_magicbox::treasure_chest_init( "depot_chest" );
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
maps/mp/gametypes_zm/_zm_gametype::setup_standard_objects( "station" );
|
||||
station_treasure_chest_init();
|
||||
level.enemy_location_override_func = ::enemy_location_override;
|
||||
collision = spawn( "script_model", ( -6896, 4744, 0 ), 1 );
|
||||
collision setmodel( "zm_collision_transit_busdepot_survival" );
|
||||
collision disconnectpaths();
|
||||
flag_wait( "initial_blackscreen_passed" );
|
||||
nodes = getnodearray( "classic_only_traversal", "targetname" );
|
||||
foreach ( node in nodes )
|
||||
{
|
||||
unlink_nodes( node, getnode( node.target, "targetname" ) );
|
||||
}
|
||||
level thread maps/mp/zombies/_zm_perks::perk_machine_removal( "specialty_quickrevive", "p_glo_tools_chest_tall" );
|
||||
maps/mp/zombies/_zm_game_module::turn_power_on_and_open_doors();
|
||||
}
|
||||
|
||||
enemy_location_override( zombie, enemy )
|
||||
{
|
||||
location = enemy.origin;
|
||||
if ( is_true( self.reroute ) )
|
||||
{
|
||||
if ( isDefined( self.reroute_origin ) )
|
||||
{
|
||||
location = self.reroute_origin;
|
||||
}
|
||||
}
|
||||
return location;
|
||||
}
|
55
maps/mp/zm_transit_standard_station.gsc
Normal file
55
maps/mp/zm_transit_standard_station.gsc
Normal file
@ -0,0 +1,55 @@
|
||||
#include maps/mp/zombies/_zm_perks;
|
||||
#include maps/mp/gametypes_zm/_zm_gametype;
|
||||
#include maps/mp/zombies/_zm_magicbox;
|
||||
#include maps/mp/zombies/_zm_race_utility;
|
||||
#include maps/mp/zombies/_zm_utility;
|
||||
#include common_scripts/utility;
|
||||
#include maps/mp/_utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "zm_collision_transit_busdepot_survival" );
|
||||
}
|
||||
|
||||
station_treasure_chest_init()
|
||||
{
|
||||
chest1 = getstruct( "depot_chest", "script_noteworthy" );
|
||||
level.chests = [];
|
||||
level.chests[ level.chests.size ] = chest1;
|
||||
maps/mp/zombies/_zm_magicbox::treasure_chest_init( "depot_chest" );
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
maps/mp/gametypes_zm/_zm_gametype::setup_standard_objects( "station" );
|
||||
station_treasure_chest_init();
|
||||
level.enemy_location_override_func = ::enemy_location_override;
|
||||
collision = spawn( "script_model", ( -6896, 4744, 0 ), 1 );
|
||||
collision setmodel( "zm_collision_transit_busdepot_survival" );
|
||||
collision disconnectpaths();
|
||||
flag_wait( "initial_blackscreen_passed" );
|
||||
level thread maps/mp/zombies/_zm_perks::perk_machine_removal( "specialty_quickrevive", "p_glo_tools_chest_tall" );
|
||||
flag_set( "power_on" );
|
||||
level setclientfield( "zombie_power_on", 1 );
|
||||
zombie_doors = getentarray( "zombie_door", "targetname" );
|
||||
foreach ( door in zombie_doors )
|
||||
{
|
||||
if ( isDefined( door.script_noteworthy ) && door.script_noteworthy == "local_electric_door" )
|
||||
{
|
||||
door trigger_off();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enemy_location_override( zombie, enemy )
|
||||
{
|
||||
location = enemy.origin;
|
||||
if ( is_true( self.reroute ) )
|
||||
{
|
||||
if ( isDefined( self.reroute_origin ) )
|
||||
{
|
||||
location = self.reroute_origin;
|
||||
}
|
||||
}
|
||||
return location;
|
||||
}
|
Reference in New Issue
Block a user