mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-22 05:00:54 -05:00
Unpad inside of parens
This commit is contained in:
@ -5,34 +5,34 @@
|
||||
init()
|
||||
{
|
||||
level.enemy_location_override_func = ::enemy_location_override;
|
||||
flag_wait( "initial_blackscreen_passed" );
|
||||
flag_wait("initial_blackscreen_passed");
|
||||
maps\mp\zombies\_zm_game_module::turn_power_on_and_open_doors();
|
||||
flag_wait( "start_zombie_round_logic" );
|
||||
flag_wait("start_zombie_round_logic");
|
||||
wait 1;
|
||||
level notify( "revive_on" );
|
||||
level notify("revive_on");
|
||||
wait_network_frame();
|
||||
level notify( "doubletap_on" );
|
||||
level notify("doubletap_on");
|
||||
wait_network_frame();
|
||||
level notify( "marathon_on" );
|
||||
level notify("marathon_on");
|
||||
wait_network_frame();
|
||||
level notify( "juggernog_on" );
|
||||
level notify("juggernog_on");
|
||||
wait_network_frame();
|
||||
level notify( "sleight_on" );
|
||||
level notify("sleight_on");
|
||||
wait_network_frame();
|
||||
level notify( "tombstone_on" );
|
||||
level notify("tombstone_on");
|
||||
wait_network_frame();
|
||||
level notify( "additionalprimaryweapon_on" );
|
||||
level notify("additionalprimaryweapon_on");
|
||||
wait_network_frame();
|
||||
level notify( "Pack_A_Punch_on" );
|
||||
level notify("Pack_A_Punch_on");
|
||||
}
|
||||
|
||||
enemy_location_override( zombie, enemy )
|
||||
enemy_location_override(zombie, enemy)
|
||||
{
|
||||
location = enemy.origin;
|
||||
|
||||
if ( is_true( self.reroute ) )
|
||||
if (is_true(self.reroute))
|
||||
{
|
||||
if ( isDefined( self.reroute_origin ) )
|
||||
if (isDefined(self.reroute_origin))
|
||||
{
|
||||
location = self.reroute_origin;
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
struct_init()
|
||||
{
|
||||
og_perk_structs = [];
|
||||
structs = getstructarray( "zm_perk_machine", "targetname" );
|
||||
structs = getstructarray("zm_perk_machine", "targetname");
|
||||
|
||||
level.struct_class_names[ "targetname" ][ "zm_perk_machine" ] = [];
|
||||
|
||||
@ -27,7 +27,7 @@ struct_init()
|
||||
{
|
||||
if (struct.script_noteworthy == "specialty_longersprint" || struct.script_noteworthy == "specialty_weapupgrade")
|
||||
{
|
||||
scripts\zm\replaced\utility::register_perk_struct( struct.script_noteworthy, struct.model, struct.origin, struct.angles );
|
||||
scripts\zm\replaced\utility::register_perk_struct(struct.script_noteworthy, struct.model, struct.origin, struct.angles);
|
||||
}
|
||||
}
|
||||
else if (isdefined(struct.script_string) && isSubStr(struct.script_string, "maze"))
|
||||
@ -76,10 +76,10 @@ struct_init()
|
||||
struct.origin += anglesToRight(struct.angles) * -12;
|
||||
}
|
||||
|
||||
scripts\zm\replaced\utility::register_perk_struct( struct.script_noteworthy, struct.model, struct.origin, struct.angles );
|
||||
scripts\zm\replaced\utility::register_perk_struct(struct.script_noteworthy, struct.model, struct.origin, struct.angles);
|
||||
}
|
||||
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_additionalprimaryweapon", "zombie_vending_three_gun", (3414, 853, 52), (0, 90, 0) );
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_additionalprimaryweapon", "zombie_vending_three_gun", (3414, 853, 52), (0, 90, 0));
|
||||
|
||||
initial_spawns = [];
|
||||
player_respawn_points = [];
|
||||
@ -111,7 +111,7 @@ struct_init()
|
||||
}
|
||||
else if (player_respawn_point.script_noteworthy == "zone_maze_staircase")
|
||||
{
|
||||
spawn_array = getstructarray( player_respawn_point.target, "targetname" );
|
||||
spawn_array = getstructarray(player_respawn_point.target, "targetname");
|
||||
|
||||
foreach (spawn in spawn_array)
|
||||
{
|
||||
@ -155,21 +155,21 @@ struct_init()
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "zm_collision_buried_street_grief" );
|
||||
precachemodel( "p6_zm_bu_buildable_bench_tarp" );
|
||||
precachemodel("zm_collision_buried_street_grief");
|
||||
precachemodel("p6_zm_bu_buildable_bench_tarp");
|
||||
level.chalk_buildable_pieces_hide = 1;
|
||||
griefbuildables = array( "chalk", "turbine", "springpad_zm", "subwoofer_zm" );
|
||||
maps\mp\zm_buried_buildables::include_buildables( griefbuildables );
|
||||
maps\mp\zm_buried_buildables::init_buildables( griefbuildables );
|
||||
griefbuildables = array("chalk", "turbine", "springpad_zm", "subwoofer_zm");
|
||||
maps\mp\zm_buried_buildables::include_buildables(griefbuildables);
|
||||
maps\mp\zm_buried_buildables::init_buildables(griefbuildables);
|
||||
maps\mp\zombies\_zm_equip_turbine::init();
|
||||
maps\mp\zombies\_zm_equip_turbine::init_animtree();
|
||||
maps\mp\zombies\_zm_equip_springpad::init( &"ZM_BURIED_EQ_SP_PHS", &"ZM_BURIED_EQ_SP_HTS" );
|
||||
maps\mp\zombies\_zm_equip_subwoofer::init( &"ZM_BURIED_EQ_SW_PHS", &"ZM_BURIED_EQ_SW_HTS" );
|
||||
maps\mp\zombies\_zm_equip_springpad::init(&"ZM_BURIED_EQ_SP_PHS", &"ZM_BURIED_EQ_SP_HTS");
|
||||
maps\mp\zombies\_zm_equip_subwoofer::init(&"ZM_BURIED_EQ_SW_PHS", &"ZM_BURIED_EQ_SW_HTS");
|
||||
maps\mp\zm_buried_fountain::init_fountain();
|
||||
|
||||
setdvar( "disableLookAtEntityLogic", 1 );
|
||||
setdvar("disableLookAtEntityLogic", 1);
|
||||
|
||||
start_chest_zbarrier = getEnt( "start_chest_zbarrier", "script_noteworthy" );
|
||||
start_chest_zbarrier = getEnt("start_chest_zbarrier", "script_noteworthy");
|
||||
start_chest_zbarrier.origin = (4127.04, 1271.74, 17);
|
||||
start_chest_zbarrier.angles = (0, 270, 0);
|
||||
start_chest = spawnStruct();
|
||||
@ -177,20 +177,20 @@ precache()
|
||||
start_chest.angles = start_chest_zbarrier.angles;
|
||||
start_chest.script_noteworthy = "start_chest";
|
||||
start_chest.zombie_cost = 950;
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin, 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin, 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin - ( 0, 32, 0 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin - (0, 32, 0), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, 32, 0 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 32, 0), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
|
||||
start_chest2_zbarrier = getEnt( "tunnels_chest1_zbarrier", "script_noteworthy" );
|
||||
start_chest2_zbarrier = getEnt("tunnels_chest1_zbarrier", "script_noteworthy");
|
||||
start_chest2_zbarrier.origin = (5605.74, 276.96, 17);
|
||||
start_chest2_zbarrier.angles = (0, 180, 0);
|
||||
start_chest2 = spawnStruct();
|
||||
@ -198,17 +198,17 @@ precache()
|
||||
start_chest2.angles = start_chest2_zbarrier.angles;
|
||||
start_chest2.script_noteworthy = "tunnels_chest1";
|
||||
start_chest2.zombie_cost = 950;
|
||||
collision = spawn( "script_model", start_chest2_zbarrier.origin, 1 );
|
||||
collision = spawn("script_model", start_chest2_zbarrier.origin, 1);
|
||||
collision.angles = start_chest2_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest2_zbarrier.origin - ( 32, 0, 0 ), 1 );
|
||||
collision = spawn("script_model", start_chest2_zbarrier.origin - (32, 0, 0), 1);
|
||||
collision.angles = start_chest2_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest2_zbarrier.origin + ( 32, 0, 0 ), 1 );
|
||||
collision = spawn("script_model", start_chest2_zbarrier.origin + (32, 0, 0), 1);
|
||||
collision.angles = start_chest2_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
|
||||
level.chests = [];
|
||||
@ -221,14 +221,14 @@ main()
|
||||
level.buildables_built["pap"] = 1;
|
||||
level.equipment_team_pick_up = 1;
|
||||
level thread maps\mp\zombies\_zm_buildables::think_buildables();
|
||||
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "street" );
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( random( array( "start_chest", "tunnels_chest1" ) ) );
|
||||
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects("street");
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init(random(array("start_chest", "tunnels_chest1")));
|
||||
deleteslothbarricades();
|
||||
powerswitchstate( 1 );
|
||||
powerswitchstate(1);
|
||||
|
||||
flag_set("mansion_door1");
|
||||
level.zones["zone_mansion"].is_enabled = 0;
|
||||
maps\mp\zombies\_zm::spawn_kill_brush( (4919, 575, -511), 128, 300 );
|
||||
maps\mp\zombies\_zm::spawn_kill_brush((4919, 575, -511), 128, 300);
|
||||
init_wallbuys();
|
||||
init_barriers();
|
||||
disable_mansion();
|
||||
@ -238,7 +238,7 @@ main()
|
||||
init_wallbuys()
|
||||
{
|
||||
og_weapon_structs = [];
|
||||
structs = getstructarray( "weapon_upgrade", "targetname" );
|
||||
structs = getstructarray("weapon_upgrade", "targetname");
|
||||
|
||||
foreach (struct in structs)
|
||||
{
|
||||
@ -257,46 +257,46 @@ init_wallbuys()
|
||||
|
||||
og_weapon_structs = array_randomize(og_weapon_structs);
|
||||
|
||||
scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", og_weapon_structs[0].origin, og_weapon_structs[0].angles );
|
||||
scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", og_weapon_structs[1].origin, og_weapon_structs[1].angles );
|
||||
scripts\zm\replaced\utility::wallbuy( "beretta93r_zm", "beretta93r", "weapon_upgrade", og_weapon_structs[2].origin, og_weapon_structs[2].angles );
|
||||
scripts\zm\replaced\utility::wallbuy( "pdw57_zm", "pdw57", "weapon_upgrade", og_weapon_structs[3].origin, og_weapon_structs[3].angles );
|
||||
scripts\zm\replaced\utility::wallbuy( "an94_zm", "an94", "weapon_upgrade", og_weapon_structs[4].origin, og_weapon_structs[4].angles );
|
||||
scripts\zm\replaced\utility::wallbuy( "lsat_zm", "lsat", "weapon_upgrade", og_weapon_structs[5].origin, og_weapon_structs[5].angles );
|
||||
scripts\zm\replaced\utility::wallbuy("m14_zm", "m14", "weapon_upgrade", og_weapon_structs[0].origin, og_weapon_structs[0].angles);
|
||||
scripts\zm\replaced\utility::wallbuy("rottweil72_zm", "olympia", "weapon_upgrade", og_weapon_structs[1].origin, og_weapon_structs[1].angles);
|
||||
scripts\zm\replaced\utility::wallbuy("beretta93r_zm", "beretta93r", "weapon_upgrade", og_weapon_structs[2].origin, og_weapon_structs[2].angles);
|
||||
scripts\zm\replaced\utility::wallbuy("pdw57_zm", "pdw57", "weapon_upgrade", og_weapon_structs[3].origin, og_weapon_structs[3].angles);
|
||||
scripts\zm\replaced\utility::wallbuy("an94_zm", "an94", "weapon_upgrade", og_weapon_structs[4].origin, og_weapon_structs[4].angles);
|
||||
scripts\zm\replaced\utility::wallbuy("lsat_zm", "lsat", "weapon_upgrade", og_weapon_structs[5].origin, og_weapon_structs[5].angles);
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", (3398, 898, 116), (0, 0, 0) );
|
||||
scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", (3398, 898, 244), (0, 0, 0) );
|
||||
scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", (3398, 898, 372), (0, 0, 0) );
|
||||
scripts\zm\replaced\utility::barrier("collision_geo_64x64x128_standard", (3398, 898, 116), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::barrier("collision_geo_64x64x128_standard", (3398, 898, 244), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::barrier("collision_geo_64x64x128_standard", (3398, 898, 372), (0, 0, 0));
|
||||
|
||||
structs = getstructarray( "zm_perk_machine", "targetname" );
|
||||
structs = getstructarray("zm_perk_machine", "targetname");
|
||||
|
||||
foreach (struct in structs)
|
||||
{
|
||||
scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", struct.origin + (anglesToRight(struct.angles) * -9) + (0, 0, 320), struct.angles );
|
||||
scripts\zm\replaced\utility::barrier("collision_geo_64x64x128_standard", struct.origin + (anglesToRight(struct.angles) * -9) + (0, 0, 320), struct.angles);
|
||||
}
|
||||
}
|
||||
|
||||
disable_mansion()
|
||||
{
|
||||
// left
|
||||
model = spawn( "script_model", (3368.72, 561.516, 234.577));
|
||||
model = spawn("script_model", (3368.72, 561.516, 234.577));
|
||||
model.angles = (179, 90, 38);
|
||||
model setmodel("p6_zm_bu_conservatory_tree_roots_a_close");
|
||||
model = spawn( "script_model", (3396.1, 556.795, 246.125));
|
||||
model = spawn("script_model", (3396.1, 556.795, 246.125));
|
||||
model.angles = (0, 90, 0);
|
||||
model setmodel("collision_clip_wall_128x128x10");
|
||||
|
||||
// right
|
||||
model = spawn( "script_model", (3447.32, 1058.31, 30.6045));
|
||||
model = spawn("script_model", (3447.32, 1058.31, 30.6045));
|
||||
model.angles = (0, 270, 240);
|
||||
model setmodel("p6_zm_bu_conservatory_tree_roots_a");
|
||||
model = spawn( "script_model", (3417.32, 1058.31, 200.605));
|
||||
model = spawn("script_model", (3417.32, 1058.31, 200.605));
|
||||
model.angles = (-170, 270, 220);
|
||||
model setmodel("p6_zm_bu_conservatory_tree_roots_a");
|
||||
model = spawn( "script_model", (3332.03, 1123.32, 51.4592));
|
||||
model = spawn("script_model", (3332.03, 1123.32, 51.4592));
|
||||
model.angles = (-15, 0, 0);
|
||||
model setmodel("collision_clip_256x256x256");
|
||||
}
|
@ -9,8 +9,8 @@ struct_init()
|
||||
{
|
||||
level.struct_class_names[ "targetname" ][ "zm_perk_machine" ] = [];
|
||||
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( 473.92, 6638.99, 208 ), ( 0, 102, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_zm_al_vending_pap_on", ( -1769, 5395, -72 ), ( 0, 100, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (473.92, 6638.99, 208), (0, 102, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_weapupgrade", "p6_zm_al_vending_pap_on", (-1769, 5395, -72), (0, 100, 0));
|
||||
|
||||
level.struct_class_names[ "script_noteworthy" ][ "initial_spawn" ] = [];
|
||||
|
||||
@ -35,12 +35,12 @@ struct_init()
|
||||
origin = respawn.origin + (anglesToRight(respawn.angles) * 32);
|
||||
angles = respawn.angles;
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( origin, angles, player_respawn_point.script_noteworthy, script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn(origin, angles, player_respawn_point.script_noteworthy, script_int);
|
||||
|
||||
origin = respawn.origin + (anglesToRight(respawn.angles) * -32);
|
||||
angles = respawn.angles;
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( origin, angles, player_respawn_point.script_noteworthy, script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn(origin, angles, player_respawn_point.script_noteworthy, script_int);
|
||||
|
||||
i++;
|
||||
}
|
||||
@ -83,9 +83,9 @@ struct_init()
|
||||
|
||||
precache()
|
||||
{
|
||||
setdvar( "disableLookAtEntityLogic", 1 );
|
||||
setdvar("disableLookAtEntityLogic", 1);
|
||||
level.chests = [];
|
||||
level.chests[0] = getstruct( "dock_chest", "script_noteworthy" );
|
||||
level.chests[0] = getstruct("dock_chest", "script_noteworthy");
|
||||
}
|
||||
|
||||
main()
|
||||
@ -99,16 +99,16 @@ main()
|
||||
disable_gondola_call_triggers();
|
||||
disable_craftable_triggers();
|
||||
disable_afterlife_props();
|
||||
create_key_door_unitrigger( 4, 98, 112, 108 );
|
||||
create_key_door_unitrigger(4, 98, 112, 108);
|
||||
level thread open_inner_gate();
|
||||
level thread turn_afterlife_interacts_on();
|
||||
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "cellblock" );
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( "dock_chest" );
|
||||
precacheshader( "zm_al_wth_zombie" );
|
||||
array_thread( level.zombie_spawners, ::add_spawn_function, maps\mp\zm_alcatraz_grief_cellblock::remove_zombie_hats_for_grief );
|
||||
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects("cellblock");
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("dock_chest");
|
||||
precacheshader("zm_al_wth_zombie");
|
||||
array_thread(level.zombie_spawners, ::add_spawn_function, maps\mp\zm_alcatraz_grief_cellblock::remove_zombie_hats_for_grief);
|
||||
maps\mp\zombies\_zm_ai_brutus::precache();
|
||||
maps\mp\zombies\_zm_ai_brutus::init();
|
||||
level._effect["butterflies"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_skull_elec" );
|
||||
level._effect["butterflies"] = loadfx("maps/zombie_alcatraz/fx_alcatraz_skull_elec");
|
||||
scripts\zm\locs\loc_common::init();
|
||||
level thread maps\mp\zm_alcatraz_traps::init_tower_trap_trigs();
|
||||
}
|
||||
@ -128,58 +128,58 @@ set_box_weapons()
|
||||
|
||||
init_wallbuys()
|
||||
{
|
||||
scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( 305, 6376, 319 ), ( 0, -80, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -709, 5721, -19.875 ), ( 0, -80, 30 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "uzi_zm", "uzi", "weapon_upgrade", ( -219, 7156, 122 ), ( 0, 190, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy("m14_zm", "m14", "weapon_upgrade", (305, 6376, 319), (0, -80, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("rottweil72_zm", "olympia", "weapon_upgrade", (-709, 5721, -19.875), (0, -80, 30));
|
||||
scripts\zm\replaced\utility::wallbuy("uzi_zm", "uzi", "weapon_upgrade", (-219, 7156, 122), (0, 190, 0));
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
// left
|
||||
model = spawn( "script_model", (-90.4585, 7669.56, 114.511));
|
||||
model = spawn("script_model", (-90.4585, 7669.56, 114.511));
|
||||
model.angles = (90, -10, 55);
|
||||
model setmodel("p6_zm_al_horrific_bed_mattress_3");
|
||||
model = spawn( "script_model", (-111.549, 7667.96, 97.125));
|
||||
model = spawn("script_model", (-111.549, 7667.96, 97.125));
|
||||
model.angles = (0, 0, 90);
|
||||
model setmodel("zm_al_kitchen_table_01");
|
||||
model = spawn( "script_model", (-113.959, 7638.7, 75.0369));
|
||||
model = spawn("script_model", (-113.959, 7638.7, 75.0369));
|
||||
model.angles = (6, 0, -6);
|
||||
model setmodel("afr_corrugated_metal4x8_holes");
|
||||
model = spawn( "script_model", (-106.911, 7636.47, 64.125));
|
||||
model = spawn("script_model", (-106.911, 7636.47, 64.125));
|
||||
model.angles = (0, 0, 0);
|
||||
model setmodel("collision_clip_wall_128x128x10");
|
||||
|
||||
// right
|
||||
model = spawn( "script_model", (48.6213, 7639.88, 74.125));
|
||||
model = spawn("script_model", (48.6213, 7639.88, 74.125));
|
||||
model.angles = (22, -44, 0);
|
||||
model setmodel("p6_zm_al_infirmary_case");
|
||||
model = spawn( "script_model", (44.9895, 7601.56, 81.125));
|
||||
model = spawn("script_model", (44.9895, 7601.56, 81.125));
|
||||
model.angles = (-5, -41, -8);
|
||||
model setmodel("afr_corrugated_metal4x8_holes");
|
||||
model = spawn( "script_model", (98.769, 7602.89, 64.125));
|
||||
model = spawn("script_model", (98.769, 7602.89, 64.125));
|
||||
model.angles = (0, -142, 0);
|
||||
model setmodel("p6_zm_al_desk_small");
|
||||
model = spawn( "script_model", (43.2479, 7606.2, 66.125));
|
||||
model = spawn("script_model", (43.2479, 7606.2, 66.125));
|
||||
model.angles = (0, -45, 0);
|
||||
model setmodel("collision_clip_wall_128x128x10");
|
||||
}
|
||||
|
||||
generatebuildabletarps()
|
||||
{
|
||||
model = spawn( "script_model", (432.836, 6238.03, 55.997));
|
||||
model = spawn("script_model", (432.836, 6238.03, 55.997));
|
||||
model.angles = (0, 100, 0);
|
||||
model setmodel("p6_zm_buildable_bench_tarp");
|
||||
}
|
||||
|
||||
disable_zombie_spawn_locations()
|
||||
{
|
||||
for ( z = 0; z < level.zone_keys.size; z++ )
|
||||
for (z = 0; z < level.zone_keys.size; z++)
|
||||
{
|
||||
zone = level.zones[ level.zone_keys[ z ] ];
|
||||
|
||||
i = 0;
|
||||
|
||||
while ( i < zone.spawn_locations.size )
|
||||
while (i < zone.spawn_locations.size)
|
||||
{
|
||||
if (zone.spawn_locations[i].origin == (615.8, 7875.9, 95))
|
||||
{
|
||||
@ -197,9 +197,9 @@ disable_zombie_spawn_locations()
|
||||
|
||||
disable_gondola_call_triggers()
|
||||
{
|
||||
t_call_triggers = getentarray( "gondola_call_trigger", "targetname" );
|
||||
t_call_triggers = getentarray("gondola_call_trigger", "targetname");
|
||||
|
||||
foreach ( trigger in t_call_triggers )
|
||||
foreach (trigger in t_call_triggers)
|
||||
{
|
||||
trigger delete();
|
||||
}
|
||||
@ -207,9 +207,9 @@ disable_gondola_call_triggers()
|
||||
|
||||
disable_craftable_triggers()
|
||||
{
|
||||
t_crafting_table = getentarray( "open_craftable_trigger", "targetname" );
|
||||
t_crafting_table = getentarray("open_craftable_trigger", "targetname");
|
||||
|
||||
foreach ( trigger in t_crafting_table )
|
||||
foreach (trigger in t_crafting_table)
|
||||
{
|
||||
trigger delete();
|
||||
}
|
||||
@ -217,9 +217,9 @@ disable_craftable_triggers()
|
||||
|
||||
disable_afterlife_props()
|
||||
{
|
||||
a_afterlife_props = getentarray( "afterlife_show", "targetname" );
|
||||
a_afterlife_props = getentarray("afterlife_show", "targetname");
|
||||
|
||||
foreach ( m_prop in a_afterlife_props )
|
||||
foreach (m_prop in a_afterlife_props)
|
||||
{
|
||||
m_prop delete();
|
||||
}
|
||||
@ -227,18 +227,18 @@ disable_afterlife_props()
|
||||
|
||||
turn_afterlife_interacts_on()
|
||||
{
|
||||
a_afterlife_interact = getentarray( "afterlife_interact", "targetname" );
|
||||
a_afterlife_interact = getentarray("afterlife_interact", "targetname");
|
||||
|
||||
foreach ( model in a_afterlife_interact )
|
||||
foreach (model in a_afterlife_interact)
|
||||
{
|
||||
if ( model.script_string == "juggernog_on" )
|
||||
if (model.script_string == "juggernog_on")
|
||||
{
|
||||
model turn_afterlife_interact_on();
|
||||
wait 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
m_docks_shockbox = getent( "docks_panel", "targetname" );
|
||||
m_docks_shockbox = getent("docks_panel", "targetname");
|
||||
m_docks_shockbox turn_afterlife_interact_on();
|
||||
}
|
||||
|
||||
@ -246,23 +246,23 @@ turn_afterlife_interacts_on()
|
||||
|
||||
turn_afterlife_interact_on()
|
||||
{
|
||||
if ( !isDefined( level.shockbox_anim ) )
|
||||
if (!isDefined(level.shockbox_anim))
|
||||
{
|
||||
level.shockbox_anim[ "on" ] = %fxanim_zom_al_shock_box_on_anim;
|
||||
level.shockbox_anim[ "off" ] = %fxanim_zom_al_shock_box_off_anim;
|
||||
}
|
||||
|
||||
if ( issubstr( self.model, "p6_zm_al_shock_box" ) )
|
||||
if (issubstr(self.model, "p6_zm_al_shock_box"))
|
||||
{
|
||||
self useanimtree( -1 );
|
||||
self setmodel( "p6_zm_al_shock_box_on" );
|
||||
self setanim( level.shockbox_anim[ "on" ] );
|
||||
self useanimtree(-1);
|
||||
self setmodel("p6_zm_al_shock_box_on");
|
||||
self setanim(level.shockbox_anim[ "on" ]);
|
||||
}
|
||||
}
|
||||
|
||||
create_key_door_unitrigger( piece_num, width, height, length )
|
||||
create_key_door_unitrigger(piece_num, width, height, length)
|
||||
{
|
||||
t_key_door = getstruct( "key_door_" + piece_num + "_trigger", "targetname" );
|
||||
t_key_door = getstruct("key_door_" + piece_num + "_trigger", "targetname");
|
||||
t_key_door.unitrigger_stub = spawnstruct();
|
||||
t_key_door.unitrigger_stub.origin = t_key_door.origin;
|
||||
t_key_door.unitrigger_stub.angles = t_key_door.angles;
|
||||
@ -276,95 +276,95 @@ create_key_door_unitrigger( piece_num, width, height, length )
|
||||
t_key_door.unitrigger_stub.require_look_at = 0;
|
||||
t_key_door.unitrigger_stub.prompt_and_visibility_func = ::key_door_trigger_visibility;
|
||||
t_key_door.unitrigger_stub.cost = 2000;
|
||||
maps\mp\zombies\_zm_unitrigger::register_static_unitrigger( t_key_door.unitrigger_stub, ::master_key_door_trigger_thread );
|
||||
maps\mp\zombies\_zm_unitrigger::register_static_unitrigger(t_key_door.unitrigger_stub, ::master_key_door_trigger_thread);
|
||||
}
|
||||
|
||||
key_door_trigger_visibility( player )
|
||||
key_door_trigger_visibility(player)
|
||||
{
|
||||
b_is_invis = player.afterlife || isdefined( self.stub.master_key_door_opened ) && self.stub.master_key_door_opened || self.stub.n_door_index == 2 && !flag( "generator_challenge_completed" );
|
||||
self setinvisibletoplayer( player, b_is_invis );
|
||||
b_is_invis = player.afterlife || isdefined(self.stub.master_key_door_opened) && self.stub.master_key_door_opened || self.stub.n_door_index == 2 && !flag("generator_challenge_completed");
|
||||
self setinvisibletoplayer(player, b_is_invis);
|
||||
|
||||
self sethintstring( &"ZOMBIE_BUTTON_BUY_OPEN_DOOR_2000" );
|
||||
self sethintstring(&"ZOMBIE_BUTTON_BUY_OPEN_DOOR_2000");
|
||||
|
||||
return !b_is_invis;
|
||||
}
|
||||
|
||||
master_key_door_trigger_thread()
|
||||
{
|
||||
self endon( "death" );
|
||||
self endon( "kill_trigger" );
|
||||
self endon("death");
|
||||
self endon("kill_trigger");
|
||||
n_door_index = self.stub.n_door_index;
|
||||
b_door_open = 0;
|
||||
|
||||
while ( !b_door_open )
|
||||
while (!b_door_open)
|
||||
{
|
||||
self waittill( "trigger", e_triggerer );
|
||||
self waittill("trigger", e_triggerer);
|
||||
|
||||
if ( is_player_valid(e_triggerer) )
|
||||
if (is_player_valid(e_triggerer))
|
||||
{
|
||||
if ( e_triggerer.score >= self.stub.cost )
|
||||
if (e_triggerer.score >= self.stub.cost)
|
||||
{
|
||||
e_triggerer maps\mp\zombies\_zm_score::minus_to_player_score( self.stub.cost );
|
||||
e_triggerer play_sound_on_ent( "purchase" );
|
||||
e_triggerer maps\mp\zombies\_zm_score::minus_to_player_score(self.stub.cost);
|
||||
e_triggerer play_sound_on_ent("purchase");
|
||||
|
||||
self.stub.master_key_door_opened = 1;
|
||||
self.stub maps\mp\zombies\_zm_unitrigger::run_visibility_function_for_all_triggers();
|
||||
level thread open_custom_door_master_key( n_door_index, e_triggerer );
|
||||
self playsound( "evt_quest_door_open" );
|
||||
level thread open_custom_door_master_key(n_door_index, e_triggerer);
|
||||
self playsound("evt_quest_door_open");
|
||||
b_door_open = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
play_sound_at_pos( "no_purchase", self.stub.origin );
|
||||
play_sound_at_pos("no_purchase", self.stub.origin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
level thread maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( self.stub );
|
||||
level thread maps\mp\zombies\_zm_unitrigger::unregister_unitrigger(self.stub);
|
||||
}
|
||||
|
||||
open_custom_door_master_key( n_door_index, e_triggerer )
|
||||
open_custom_door_master_key(n_door_index, e_triggerer)
|
||||
{
|
||||
m_lock = getent( "masterkey_lock_" + n_door_index, "targetname" );
|
||||
m_lock playsound( "zmb_quest_key_unlock" );
|
||||
playfxontag( level._effect["fx_alcatraz_unlock_door"], m_lock, "tag_origin" );
|
||||
m_lock = getent("masterkey_lock_" + n_door_index, "targetname");
|
||||
m_lock playsound("zmb_quest_key_unlock");
|
||||
playfxontag(level._effect["fx_alcatraz_unlock_door"], m_lock, "tag_origin");
|
||||
wait 0.5;
|
||||
m_lock delete();
|
||||
|
||||
m_gate_01 = getent( "cable_puzzle_gate_01", "targetname" );
|
||||
m_gate_01 moveto( m_gate_01.origin + ( -16, 80, 0 ), 0.5 );
|
||||
m_gate_01 = getent("cable_puzzle_gate_01", "targetname");
|
||||
m_gate_01 moveto(m_gate_01.origin + (-16, 80, 0), 0.5);
|
||||
m_gate_01 connectpaths();
|
||||
gate_1_monsterclip = getent( "docks_gate_1_monsterclip", "targetname" );
|
||||
gate_1_monsterclip.origin += vectorscale( ( 0, 0, 1 ), 256.0 );
|
||||
gate_1_monsterclip = getent("docks_gate_1_monsterclip", "targetname");
|
||||
gate_1_monsterclip.origin += vectorscale((0, 0, 1), 256.0);
|
||||
gate_1_monsterclip disconnectpaths();
|
||||
gate_1_monsterclip.origin -= vectorscale( ( 0, 0, 1 ), 256.0 );
|
||||
gate_1_monsterclip.origin -= vectorscale((0, 0, 1), 256.0);
|
||||
|
||||
if ( isdefined( e_triggerer ) )
|
||||
if (isdefined(e_triggerer))
|
||||
e_triggerer door_rumble_on_open();
|
||||
|
||||
m_gate_01 playsound( "zmb_chainlink_open" );
|
||||
flag_set( "docks_inner_gate_unlocked" );
|
||||
flag_set( "docks_inner_gate_open" );
|
||||
m_gate_01 playsound("zmb_chainlink_open");
|
||||
flag_set("docks_inner_gate_unlocked");
|
||||
flag_set("docks_inner_gate_open");
|
||||
}
|
||||
|
||||
door_rumble_on_open()
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
level endon( "end_game" );
|
||||
self setclientfieldtoplayer( "rumble_door_open", 1 );
|
||||
self endon("disconnect");
|
||||
level endon("end_game");
|
||||
self setclientfieldtoplayer("rumble_door_open", 1);
|
||||
wait_network_frame();
|
||||
self setclientfieldtoplayer( "rumble_door_open", 0 );
|
||||
self setclientfieldtoplayer("rumble_door_open", 0);
|
||||
}
|
||||
|
||||
open_inner_gate()
|
||||
{
|
||||
m_gate_02 = getent( "cable_puzzle_gate_02", "targetname" );
|
||||
m_gate_02 = getent("cable_puzzle_gate_02", "targetname");
|
||||
|
||||
m_gate_02 moveto( m_gate_02.origin + ( -16, 80, 0 ), 0.5 );
|
||||
wait( 0.75 );
|
||||
m_gate_02 moveto(m_gate_02.origin + (-16, 80, 0), 0.5);
|
||||
wait(0.75);
|
||||
m_gate_02 connectpaths();
|
||||
gate_2_monsterclip = getent( "docks_gate_2_monsterclip", "targetname" );
|
||||
gate_2_monsterclip.origin += vectorscale( ( 0, 0, 1 ), 256.0 );
|
||||
gate_2_monsterclip = getent("docks_gate_2_monsterclip", "targetname");
|
||||
gate_2_monsterclip.origin += vectorscale((0, 0, 1), 256.0);
|
||||
gate_2_monsterclip disconnectpaths();
|
||||
gate_2_monsterclip.origin -= vectorscale( ( 0, 0, 1 ), 256.0 );
|
||||
gate_2_monsterclip.origin -= vectorscale((0, 0, 1), 256.0);
|
||||
}
|
@ -10,8 +10,8 @@
|
||||
|
||||
struct_init()
|
||||
{
|
||||
scripts\zm\replaced\utility::register_perk_struct( "", "", ( 0, 0, 0 ), ( 0, 0, 0 ) ); // need this for pap to work
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( 10460, -564, -220 ), ( 0, -35, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct("", "", (0, 0, 0), (0, 0, 0)); // need this for pap to work
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", (10460, -564, -220), (0, -35, 0));
|
||||
|
||||
zone_respawnpoints = [];
|
||||
respawnpoints = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype();
|
||||
@ -35,32 +35,32 @@ struct_init()
|
||||
level.struct_class_names["script_noteworthy"]["initial_spawn"] = [];
|
||||
|
||||
zone = "zone_cornfield_prototype";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( zone_respawnpoints[zone].origin, zone, zone_respawnpoints[zone].script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group(zone_respawnpoints[zone].origin, zone, zone_respawnpoints[zone].script_int);
|
||||
|
||||
respawn_array = getstructarray(zone_respawnpoints[zone].target, "targetname");
|
||||
|
||||
foreach (respawn in respawn_array)
|
||||
{
|
||||
scripts\zm\replaced\utility::register_map_spawn( respawn.origin + (100, 0, 0), respawn.angles, zone, respawn.script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn(respawn.origin + (100, 0, 0), respawn.angles, zone, respawn.script_int);
|
||||
}
|
||||
|
||||
zone = "zone_amb_cornfield";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( zone_respawnpoints[zone].origin, zone, zone_respawnpoints[zone].script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group(zone_respawnpoints[zone].origin, zone, zone_respawnpoints[zone].script_int);
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11986, -1858, -132), (0, 80, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (12158, -61, -141), (0, -85, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11366, 20, -193), (0, -5, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11199, -1768, -156), (0, -5, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10448, 90, -189), (0, -5, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10255, -1698, -186), (0, -5, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10046, -591, -192), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10036, -967, -186), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn((11986, -1858, -132), (0, 80, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((12158, -61, -141), (0, -85, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((11366, 20, -193), (0, -5, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((11199, -1768, -156), (0, -5, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10448, 90, -189), (0, -5, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10255, -1698, -186), (0, -5, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10046, -591, -192), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10036, -967, -186), (0, 0, 0), zone);
|
||||
|
||||
structs = getstructarray( "game_mode_object", "targetname" );
|
||||
structs = getstructarray("game_mode_object", "targetname");
|
||||
|
||||
foreach ( struct in structs )
|
||||
foreach (struct in structs)
|
||||
{
|
||||
if ( isDefined( struct.script_noteworthy ) && struct.script_noteworthy == "cornfield" )
|
||||
if (isDefined(struct.script_noteworthy) && struct.script_noteworthy == "cornfield")
|
||||
{
|
||||
struct.script_string = "zstandard zgrief";
|
||||
}
|
||||
@ -84,25 +84,25 @@ struct_init()
|
||||
|
||||
precache()
|
||||
{
|
||||
start_chest_zbarrier = getEnt( "start_chest_zbarrier", "script_noteworthy" );
|
||||
start_chest_zbarrier.origin = ( 13487, 33, -182 );
|
||||
start_chest_zbarrier.angles = ( 0, 90, 0 );
|
||||
start_chest_zbarrier = getEnt("start_chest_zbarrier", "script_noteworthy");
|
||||
start_chest_zbarrier.origin = (13487, 33, -182);
|
||||
start_chest_zbarrier.angles = (0, 90, 0);
|
||||
start_chest = spawnStruct();
|
||||
start_chest.origin = start_chest_zbarrier.origin;
|
||||
start_chest.angles = start_chest_zbarrier.angles;
|
||||
start_chest.script_noteworthy = "start_chest";
|
||||
start_chest.zombie_cost = 950;
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, 0, 64 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 0, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, -32, 64 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, -32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, 32, 64 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
|
||||
level.chests = [];
|
||||
@ -115,91 +115,91 @@ main()
|
||||
init_barriers();
|
||||
disable_zombie_spawn_locations();
|
||||
setup_standard_objects("cornfield");
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( random( array( "start_chest" ) ) );
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init(random(array("start_chest")));
|
||||
scripts\zm\locs\loc_common::init();
|
||||
}
|
||||
|
||||
init_wallbuys()
|
||||
{
|
||||
scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( 13662, -1166, -134 ), ( 0, -90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( 13553, -539, -133 ), ( 0, -90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "beretta93r_zm", "beretta93r", "weapon_upgrade", ( 13793, -1646, -105 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( 13553, -769, -133 ), ( 0, -90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "ak74u_zm", "ak74u", "weapon_upgrade", ( 13979, -1550, -134 ), ( 0, 90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "m16_zm", "m16", "weapon_upgrade", ( 14093, -351, -133 ), ( 0, 90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "870mcs_zm", "870mcs", "weapon_upgrade", ( 13552, -1387, -134 ), ( 0, -90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "sticky_grenade_zm", "sticky_grenade", "weapon_upgrade", ( 13603, -1082, -134 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "claymore_zm", "claymore", "claymore_purchase", ( 13603, -1281, -134 ), ( 0, -180, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy("m14_zm", "m14", "weapon_upgrade", (13662, -1166, -134), (0, -90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("rottweil72_zm", "olympia", "weapon_upgrade", (13553, -539, -133), (0, -90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("beretta93r_zm", "beretta93r", "weapon_upgrade", (13793, -1646, -105), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("mp5k_zm", "mp5", "weapon_upgrade", (13553, -769, -133), (0, -90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("ak74u_zm", "ak74u", "weapon_upgrade", (13979, -1550, -134), (0, 90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("m16_zm", "m16", "weapon_upgrade", (14093, -351, -133), (0, 90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("870mcs_zm", "870mcs", "weapon_upgrade", (13552, -1387, -134), (0, -90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("sticky_grenade_zm", "sticky_grenade", "weapon_upgrade", (13603, -1082, -134), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("claymore_zm", "claymore", "claymore_purchase", (13603, -1281, -134), (0, -180, 0));
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
model = spawn( "script_model", (10176.5, -14.8391, -221.988), 1);
|
||||
model = spawn("script_model", (10176.5, -14.8391, -221.988), 1);
|
||||
model.angles = (0, 35, 0);
|
||||
model setmodel("collision_clip_wall_256x256x10");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10002.6, -95.4607, -212.275), 1);
|
||||
model = spawn("script_model", (10002.6, -95.4607, -212.275), 1);
|
||||
model.angles = (0, 0, 0);
|
||||
model setmodel("collision_clip_wall_128x128x10");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10173.4, -1761.36, -217.812), 1);
|
||||
model = spawn("script_model", (10173.4, -1761.36, -217.812), 1);
|
||||
model.angles = (0, -60, 0);
|
||||
model setmodel("collision_clip_wall_128x128x10");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10147.5, -1657.67, -217.208), 1);
|
||||
model = spawn("script_model", (10147.5, -1657.67, -217.208), 1);
|
||||
model.angles = (0, 88, 0);
|
||||
model setmodel("collision_clip_wall_256x256x10");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10082.7, -1528.05, -217.288), 1);
|
||||
model = spawn("script_model", (10082.7, -1528.05, -217.288), 1);
|
||||
model.angles = (0, -180, 0);
|
||||
model setmodel("collision_clip_wall_128x128x10");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10159.6, -1104.45, -214.861), 1);
|
||||
model = spawn("script_model", (10159.6, -1104.45, -214.861), 1);
|
||||
model.angles = (0, -30, 0);
|
||||
model setmodel("collision_clip_64x64x256");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10157.4, -1222.83, -217.875), 1);
|
||||
model = spawn("script_model", (10157.4, -1222.83, -217.875), 1);
|
||||
model.angles = (0, 10, 0);
|
||||
model setmodel("collision_clip_64x64x256");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10216.6, -1134.53, -217.261), 1);
|
||||
model = spawn("script_model", (10216.6, -1134.53, -217.261), 1);
|
||||
model.angles = (0, -30, 0);
|
||||
model setmodel("collision_clip_64x64x256");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10147.4, -1152.83, -217.875), 1);
|
||||
model = spawn("script_model", (10147.4, -1152.83, -217.875), 1);
|
||||
model.angles = (0, 10, 0);
|
||||
model setmodel("collision_clip_64x64x256");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10099.6, -1064.45, -214.861), 1);
|
||||
model = spawn("script_model", (10099.6, -1064.45, -214.861), 1);
|
||||
model.angles = (0, -30, 0);
|
||||
model setmodel("collision_clip_64x64x256");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10016.8, -1490.24, -217.875), 1);
|
||||
model = spawn("script_model", (10016.8, -1490.24, -217.875), 1);
|
||||
model.angles = (0, -30, 0);
|
||||
model setmodel("collision_clip_128x128x128");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10443.9, -353.378, -217.748), 1);
|
||||
model = spawn("script_model", (10443.9, -353.378, -217.748), 1);
|
||||
model.angles = (0, -35, 0);
|
||||
model setmodel("collision_clip_128x128x128");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10393.5, -421.323, -220.142), 1);
|
||||
model = spawn("script_model", (10393.5, -421.323, -220.142), 1);
|
||||
model.angles = (0, -25, 0);
|
||||
model setmodel("collision_clip_128x128x128");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", (10334.9, -544.594, -217.922), 1);
|
||||
model = spawn("script_model", (10334.9, -544.594, -217.922), 1);
|
||||
model.angles = (0, -25, 0);
|
||||
model setmodel("collision_clip_128x128x128");
|
||||
model disconnectpaths();
|
||||
@ -207,12 +207,12 @@ init_barriers()
|
||||
origin = (9720, -1090, -212);
|
||||
angles = (0, 90, 0);
|
||||
|
||||
model = spawn( "script_model", origin, 1);
|
||||
model = spawn("script_model", origin, 1);
|
||||
model.angles = angles;
|
||||
model setmodel("veh_t6_civ_smallwagon_dead");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", origin + (anglesToRight(angles) * 24) + (anglesToUp(angles) * 128), 1);
|
||||
model = spawn("script_model", origin + (anglesToRight(angles) * 24) + (anglesToUp(angles) * 128), 1);
|
||||
model.angles = angles;
|
||||
model setmodel("collision_clip_wall_256x256x10");
|
||||
model disconnectpaths();
|
||||
@ -220,12 +220,12 @@ init_barriers()
|
||||
origin = (9900, -232, -217);
|
||||
angles = (0, -90, 0);
|
||||
|
||||
model = spawn( "script_model", origin, 1);
|
||||
model = spawn("script_model", origin, 1);
|
||||
model.angles = angles;
|
||||
model setmodel("veh_t6_civ_microbus_dead");
|
||||
model disconnectpaths();
|
||||
|
||||
model = spawn( "script_model", origin + (anglesToRight(angles) * -48) + (anglesToUp(angles) * 128), 1);
|
||||
model = spawn("script_model", origin + (anglesToRight(angles) * -48) + (anglesToUp(angles) * 128), 1);
|
||||
model.angles = angles;
|
||||
model setmodel("collision_clip_wall_256x256x10");
|
||||
model disconnectpaths();
|
||||
@ -233,9 +233,9 @@ init_barriers()
|
||||
|
||||
disable_zombie_spawn_locations()
|
||||
{
|
||||
for ( z = 0; z < level.zone_keys.size; z++ )
|
||||
for (z = 0; z < level.zone_keys.size; z++)
|
||||
{
|
||||
if ( level.zone_keys[ z ] != "zone_amb_cornfield" )
|
||||
if (level.zone_keys[ z ] != "zone_amb_cornfield")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -244,7 +244,7 @@ disable_zombie_spawn_locations()
|
||||
|
||||
i = 0;
|
||||
|
||||
while ( i < zone.spawn_locations.size )
|
||||
while (i < zone.spawn_locations.size)
|
||||
{
|
||||
if (zone.spawn_locations[i].origin[0] <= 9700)
|
||||
{
|
||||
|
@ -9,10 +9,10 @@
|
||||
|
||||
struct_init()
|
||||
{
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( -3563, -7196, -59 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( -6207, -6541, -46 ), ( 0, 60, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -5470, -7859.5, 0 ), ( 0, 270, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -4170, -7592, -63 ), ( 0, 270, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (-3563, -7196, -59), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_quickrevive", "zombie_vending_quickrevive", (-6207, -6541, -46), (0, 60, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_fastreload", "zombie_vending_sleight", (-5470, -7859.5, 0), (0, 270, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_rof", "zombie_vending_doubletap2", (-4170, -7592, -63), (0, 270, 0));
|
||||
|
||||
ind = 0;
|
||||
respawnpoints = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype();
|
||||
@ -27,7 +27,7 @@ struct_init()
|
||||
}
|
||||
|
||||
zone = "zone_gas";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( respawnpoints[ind].origin, zone, respawnpoints[ind].script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group(respawnpoints[ind].origin, zone, respawnpoints[ind].script_int);
|
||||
|
||||
respawn_array = getstructarray(respawnpoints[ind].target, "targetname");
|
||||
|
||||
@ -38,40 +38,40 @@ struct_init()
|
||||
respawn.angles += (0, 180, 0);
|
||||
}
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( respawn.origin, respawn.angles, zone, respawn.script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn(respawn.origin, respawn.angles, zone, respawn.script_int);
|
||||
}
|
||||
|
||||
zone = "zone_roadside_east";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( (-4173, -7095, -35), zone, 6000 );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group((-4173, -7095, -35), zone, 6000);
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4031, -6830, -18), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4106, -6830, -18), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4181, -6830, -18), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4256, -6830, -18), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4031, -7326, -35), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4106, -7326, -35), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4181, -7326, -35), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-4256, -7326, -35), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4031, -6830, -18), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4106, -6830, -18), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4181, -6830, -18), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4256, -6830, -18), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4031, -7326, -35), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4106, -7326, -35), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4181, -7326, -35), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-4256, -7326, -35), (0, 180, 0), zone);
|
||||
|
||||
zone = "zone_roadside_west";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( (-5799, -6839, -30), zone, 6000 );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group((-5799, -6839, -30), zone, 6000);
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-6120, -6684, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-6045, -6684, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-5970, -6684, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-5895, -6684, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-6120, -6984, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-6045, -6984, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-5970, -6984, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-5895, -6984, -30), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn((-6120, -6684, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-6045, -6684, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-5970, -6684, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-5895, -6684, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-6120, -6984, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-6045, -6984, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-5970, -6984, -30), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-5895, -6984, -30), (0, 0, 0), zone);
|
||||
|
||||
gameObjects = getEntArray( "script_model", "classname" );
|
||||
gameObjects = getEntArray("script_model", "classname");
|
||||
|
||||
foreach ( object in gameObjects )
|
||||
foreach (object in gameObjects)
|
||||
{
|
||||
if ( isDefined( object.script_noteworthy ) && object.script_noteworthy == getDvar( "ui_zm_mapstartlocation" ) )
|
||||
if (isDefined(object.script_noteworthy) && object.script_noteworthy == getDvar("ui_zm_mapstartlocation"))
|
||||
{
|
||||
if ( isDefined( object.script_gameobjectname ) && object.script_gameobjectname == "zcleansed zturned" )
|
||||
if (isDefined(object.script_gameobjectname) && object.script_gameobjectname == "zcleansed zturned")
|
||||
{
|
||||
object.script_gameobjectname = "zstandard zgrief zcleansed zturned";
|
||||
|
||||
@ -150,71 +150,71 @@ main()
|
||||
|
||||
treasure_chest_init()
|
||||
{
|
||||
chests = getstructarray( "treasure_chest_use", "targetname" );
|
||||
chests = getstructarray("treasure_chest_use", "targetname");
|
||||
level.chests = [];
|
||||
level.chests[0] = chests[3];
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( "start_chest" );
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("start_chest");
|
||||
}
|
||||
|
||||
init_wallbuys()
|
||||
{
|
||||
scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( -5085, -7807, -5 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -4576, -7748, 18 ), ( 0, 90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( -5489, -7982.7, 62 ), ( 0, 1, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "tazer_knuckles_zm", "tazer_knuckles", "tazer_upgrade", ( -6265, -7941, 100 ), ( 0, 90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy("m14_zm", "m14", "weapon_upgrade", (-5085, -7807, -5), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("rottweil72_zm", "olympia", "weapon_upgrade", (-4576, -7748, 18), (0, 90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("mp5k_zm", "mp5", "weapon_upgrade", (-5489, -7982.7, 62), (0, 1, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("tazer_knuckles_zm", "tazer_knuckles", "tazer_upgrade", (-6265, -7941, 100), (0, 90, 0));
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
collision = spawn( "script_model", ( -5000, -6700, 0 ), 1 );
|
||||
collision setmodel( "zm_collision_transit_diner_survival" );
|
||||
collision = spawn("script_model", (-5000, -6700, 0), 1);
|
||||
collision setmodel("zm_collision_transit_diner_survival");
|
||||
collision disconnectpaths();
|
||||
|
||||
origin = ( -6350, -7046, -60 );
|
||||
angles = ( 0, 165, 0 );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 32), angles );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 96), angles );
|
||||
scripts\zm\replaced\utility::barrier( "afr_barrel_biohazard_white_rust", origin + (anglesToForward(angles) * -24) + (anglesToRight(angles) * -16) + (anglesToUp(angles) * 14), angles + (0, 90, 90) );
|
||||
origin = (-6350, -7046, -60);
|
||||
angles = (0, 165, 0);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 32), angles);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 96), angles);
|
||||
scripts\zm\replaced\utility::barrier("afr_barrel_biohazard_white_rust", origin + (anglesToForward(angles) * -24) + (anglesToRight(angles) * -16) + (anglesToUp(angles) * 14), angles + (0, 90, 90));
|
||||
}
|
||||
|
||||
generatebuildabletarps()
|
||||
{
|
||||
tarp = spawn( "script_model", ( -4688, -7974, -64 ) );
|
||||
tarp.angles = ( 0, 0, 0 );
|
||||
tarp setModel( "p6_zm_buildable_bench_tarp" );
|
||||
tarp = spawn("script_model", (-4688, -7974, -64));
|
||||
tarp.angles = (0, 0, 0);
|
||||
tarp setModel("p6_zm_buildable_bench_tarp");
|
||||
}
|
||||
|
||||
disable_zombie_spawn_locations()
|
||||
{
|
||||
for ( z = 0; z < level.zone_keys.size; z++ )
|
||||
for (z = 0; z < level.zone_keys.size; z++)
|
||||
{
|
||||
zone = level.zones[ level.zone_keys[ z ] ];
|
||||
|
||||
i = 0;
|
||||
|
||||
while ( i < zone.spawn_locations.size )
|
||||
while (i < zone.spawn_locations.size)
|
||||
{
|
||||
if ( zone.spawn_locations[ i ].targetname == "zone_trans_diner_spawners")
|
||||
if (zone.spawn_locations[ i ].targetname == "zone_trans_diner_spawners")
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].targetname == "zone_trans_diner2_spawners")
|
||||
else if (zone.spawn_locations[ i ].targetname == "zone_trans_diner2_spawners")
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -3825, -6576, -52.7 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-3825, -6576, -52.7))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -5130, -6512, -35.4 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-5130, -6512, -35.4))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -6462, -7159, -64 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-6462, -7159, -64))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -6531, -6613, -54.4 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-6531, -6613, -54.4))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
|
@ -10,12 +10,12 @@
|
||||
|
||||
struct_init()
|
||||
{
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( 10952, 8055, -565 ), ( 0, 270, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( 11855, 7308, -758 ), ( 0, 220, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( 11571, 7723, -757 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( 11414, 8930, -352 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_scavenger", "zombie_vending_tombstone", ( 10946, 8308.77, -408 ), ( 0, 270, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( 12333, 8158, -752 ), ( 0, 180, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (10952, 8055, -565), (0, 270, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_quickrevive", "zombie_vending_quickrevive", (11855, 7308, -758), (0, 220, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_fastreload", "zombie_vending_sleight", (11571, 7723, -757), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_rof", "zombie_vending_doubletap2", (11414, 8930, -352), (0, 0, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_scavenger", "zombie_vending_tombstone", (10946, 8308.77, -408), (0, 270, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", (12333, 8158, -752), (0, 180, 0));
|
||||
|
||||
ind = 0;
|
||||
respawnpoints = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype();
|
||||
@ -30,19 +30,19 @@ struct_init()
|
||||
}
|
||||
|
||||
zone = "zone_pow";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( (10160, 7820, -541), zone, 6000 );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group((10160, 7820, -541), zone, 6000);
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 8060, -541), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7996, -541), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7932, -541), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7868, -541), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7772, -541), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7708, -541), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7644, -541), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7580, -541), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 8060, -541), (0, 0, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7996, -541), (0, 0, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7932, -541), (0, 0, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7868, -541), (0, 0, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7772, -541), (0, 0, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7708, -541), (0, 0, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7644, -541), (0, 0, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10160, 7580, -541), (0, 0, 0), zone, 2);
|
||||
|
||||
zone = "zone_prr";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( respawnpoints[ind].origin, zone, respawnpoints[ind].script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group(respawnpoints[ind].origin, zone, respawnpoints[ind].script_int);
|
||||
|
||||
respawn_array = getstructarray(respawnpoints[ind].target, "targetname");
|
||||
|
||||
@ -59,20 +59,20 @@ struct_init()
|
||||
angles += (0, -90, 0);
|
||||
}
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( respawn.origin, angles, zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn(respawn.origin, angles, zone);
|
||||
}
|
||||
|
||||
zone = "zone_pow_warehouse";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( (11033, 8587, -387), zone, 6000 );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group((11033, 8587, -387), zone, 6000);
|
||||
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11341, 8300, -459), (0, 90, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11341, 8587, -387), (0, 90, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11341, 8846, -322), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10630, 8846, -323), (0, -90, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10630, 8451, -379), (0, 0, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10884, 8192, -379), (0, 180, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11359, 8774, -548), (0, -90, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (11719, 8608, -547), (0, -90, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn((11341, 8300, -459), (0, 90, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((11341, 8587, -387), (0, 90, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((11341, 8846, -322), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10630, 8846, -323), (0, -90, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10630, 8451, -379), (0, 0, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((10884, 8192, -379), (0, 180, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((11359, 8774, -548), (0, -90, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((11719, 8608, -547), (0, -90, 0), zone);
|
||||
}
|
||||
|
||||
precache()
|
||||
@ -95,68 +95,68 @@ main()
|
||||
|
||||
treasure_chest_init()
|
||||
{
|
||||
chests = getstructarray( "treasure_chest_use", "targetname" );
|
||||
chests = getstructarray("treasure_chest_use", "targetname");
|
||||
level.chests = [];
|
||||
level.chests[0] = chests[2];
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( "pow_chest" );
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("pow_chest");
|
||||
}
|
||||
|
||||
init_wallbuys()
|
||||
{
|
||||
scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( 10559, 8220, -495 ), ( 0, 90, 0) );
|
||||
scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( 10678, 8135, -476 ), ( 0, 180, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "870mcs_zm", "870mcs", "weapon_upgrade", ( 11778, 7664, -697 ), ( 0, 170, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( 11452, 8692, -521 ), ( 0, 90, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "bowie_knife_zm", "bowie_knife", "bowie_upgrade", ( 10835, 8145, -353 ), ( 0, 0, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy("m14_zm", "m14", "weapon_upgrade", (10559, 8220, -495), (0, 90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("rottweil72_zm", "olympia", "weapon_upgrade", (10678, 8135, -476), (0, 180, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("870mcs_zm", "870mcs", "weapon_upgrade", (11778, 7664, -697), (0, 170, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("mp5k_zm", "mp5", "weapon_upgrade", (11452, 8692, -521), (0, 90, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("bowie_knife_zm", "bowie_knife", "bowie_upgrade", (10835, 8145, -353), (0, 0, 0));
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
// fog before power station
|
||||
origin = ( 10215, 7265, -570 );
|
||||
angles = ( 0, 0, 0 );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToUp(angles) * 256), angles );
|
||||
scripts\zm\replaced\utility::barrier( "veh_t6_civ_microbus_dead", origin + (anglesToForward(angles) * 96) + (anglesToRight(angles) * 48), angles );
|
||||
scripts\zm\replaced\utility::barrier( "veh_t6_civ_60s_coupe_dead", origin + (anglesToForward(angles) * -112) + (anglesToRight(angles) * 80), angles + (0, 30, 0) );
|
||||
origin = (10215, 7265, -570);
|
||||
angles = (0, 0, 0);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_512x512x10", origin + (anglesToUp(angles) * 256), angles);
|
||||
scripts\zm\replaced\utility::barrier("veh_t6_civ_microbus_dead", origin + (anglesToForward(angles) * 96) + (anglesToRight(angles) * 48), angles);
|
||||
scripts\zm\replaced\utility::barrier("veh_t6_civ_60s_coupe_dead", origin + (anglesToForward(angles) * -112) + (anglesToRight(angles) * 80), angles + (0, 30, 0));
|
||||
|
||||
// fog after power station
|
||||
origin = ( 10215, 8670, -579 );
|
||||
angles = ( 0, 7.5, 0 );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToForward(angles) * -128) + (anglesToUp(angles) * 256), angles );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToForward(angles) * 64) + (anglesToUp(angles) * 256), angles );
|
||||
scripts\zm\replaced\utility::barrier( "p6_zm_rocks_large_cluster_01", origin + (anglesToForward(angles) * -176) + (anglesToRight(angles) * -368) + (anglesToUp(angles) * 256), angles + (0, -15, 0) );
|
||||
origin = (10215, 8670, -579);
|
||||
angles = (0, 7.5, 0);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_512x512x10", origin + (anglesToForward(angles) * -128) + (anglesToUp(angles) * 256), angles);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_512x512x10", origin + (anglesToForward(angles) * 64) + (anglesToUp(angles) * 256), angles);
|
||||
scripts\zm\replaced\utility::barrier("p6_zm_rocks_large_cluster_01", origin + (anglesToForward(angles) * -176) + (anglesToRight(angles) * -368) + (anglesToUp(angles) * 256), angles + (0, -15, 0));
|
||||
}
|
||||
|
||||
show_powerswitch()
|
||||
{
|
||||
body = spawn( "script_model", ( 12237.4, 8512, -749.9 ) );
|
||||
body.angles = ( 0, 0, 0 );
|
||||
body setModel( "p6_zm_buildable_pswitch_body" );
|
||||
body = spawn("script_model", (12237.4, 8512, -749.9));
|
||||
body.angles = (0, 0, 0);
|
||||
body setModel("p6_zm_buildable_pswitch_body");
|
||||
|
||||
lever = spawn( "script_model", ( 12237.4, 8503, -703.65 ) );
|
||||
lever.angles = ( 0, 0, 0 );
|
||||
lever setModel( "p6_zm_buildable_pswitch_lever" );
|
||||
lever = spawn("script_model", (12237.4, 8503, -703.65));
|
||||
lever.angles = (0, 0, 0);
|
||||
lever setModel("p6_zm_buildable_pswitch_lever");
|
||||
|
||||
hand = spawn( "script_model", ( 12237.7, 8503.1, -684.55 ) );
|
||||
hand.angles = ( 0, 270, 0 );
|
||||
hand setModel( "p6_zm_buildable_pswitch_hand" );
|
||||
hand = spawn("script_model", (12237.7, 8503.1, -684.55));
|
||||
hand.angles = (0, 270, 0);
|
||||
hand setModel("p6_zm_buildable_pswitch_hand");
|
||||
}
|
||||
|
||||
activate_core()
|
||||
{
|
||||
reactor_core_mover = getent( "core_mover", "targetname" );
|
||||
reactor_core_mover = getent("core_mover", "targetname");
|
||||
|
||||
maps\mp\zm_transit_power::linkentitiestocoremover( reactor_core_mover );
|
||||
maps\mp\zm_transit_power::linkentitiestocoremover(reactor_core_mover);
|
||||
|
||||
reactor_core_mover thread maps\mp\zm_transit_power::coremove( 0.05 );
|
||||
reactor_core_mover thread maps\mp\zm_transit_power::coremove(0.05);
|
||||
}
|
||||
|
||||
generatebuildabletarps()
|
||||
{
|
||||
// trap
|
||||
tarp = spawn( "script_model", ( 11325, 8170, -488 ) );
|
||||
tarp.angles = ( 0, 0, 0 );
|
||||
tarp setModel( "p6_zm_buildable_bench_tarp" );
|
||||
tarp = spawn("script_model", (11325, 8170, -488));
|
||||
tarp.angles = (0, 0, 0);
|
||||
tarp setModel("p6_zm_buildable_bench_tarp");
|
||||
}
|
||||
|
||||
disable_zombie_spawn_locations()
|
||||
|
@ -10,48 +10,48 @@
|
||||
|
||||
struct_init()
|
||||
{
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( -11541, -2630, 194 ), ( 0, -180, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( -10780, -2565, 224 ), ( 0, 274, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -11373, -1674, 192 ), ( 0, -89, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -11170, -590, 196 ), ( 0, -10, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_longersprint", "zombie_vending_marathon", ( -11681, -734, 228 ), ( 0, -19, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( -11301, -2096, 184 ), ( 0, 115, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (-11541, -2630, 194), (0, -180, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_quickrevive", "zombie_vending_quickrevive", (-10780, -2565, 224), (0, 274, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_fastreload", "zombie_vending_sleight", (-11373, -1674, 192), (0, -89, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_rof", "zombie_vending_doubletap2", (-11170, -590, 196), (0, -10, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_longersprint", "zombie_vending_marathon", (-11681, -734, 228), (0, -19, 0));
|
||||
scripts\zm\replaced\utility::register_perk_struct("specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", (-11301, -2096, 184), (0, 115, 0));
|
||||
|
||||
zone = "zone_amb_tunnel";
|
||||
scripts\zm\replaced\utility::register_map_spawn_group( (-11246, -1695, 220), zone, 1000 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11406, -667, 220), (0, -6, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11568, -1179, 220), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11473, -1924, 220), (0, -15, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11457, -2400, 220), (0, 2, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-10971, -770, 220), (0, 164, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11009, -1126, 220), (0, 179, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11028, -1996, 220), (0, -176, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-11017, -2384, 220), (0, -176, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-10916, -408, 220), (0, -100, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (-10965, -2987, 220), (0, 95, 0), zone );
|
||||
scripts\zm\replaced\utility::register_map_spawn_group((-11246, -1695, 220), zone, 1000);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11406, -667, 220), (0, -6, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11568, -1179, 220), (0, 0, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11473, -1924, 220), (0, -15, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11457, -2400, 220), (0, 2, 0), zone, 1);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-10971, -770, 220), (0, 164, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11009, -1126, 220), (0, 179, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11028, -1996, 220), (0, -176, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-11017, -2384, 220), (0, -176, 0), zone, 2);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-10916, -408, 220), (0, -100, 0), zone);
|
||||
scripts\zm\replaced\utility::register_map_spawn((-10965, -2987, 220), (0, 95, 0), zone);
|
||||
}
|
||||
|
||||
precache()
|
||||
{
|
||||
start_chest_zbarrier = getEnt( "start_chest_zbarrier", "script_noteworthy" );
|
||||
start_chest_zbarrier.origin = ( -10803, -1897, 196 );
|
||||
start_chest_zbarrier.angles = ( 0, 89, 0 );
|
||||
start_chest_zbarrier = getEnt("start_chest_zbarrier", "script_noteworthy");
|
||||
start_chest_zbarrier.origin = (-10803, -1897, 196);
|
||||
start_chest_zbarrier.angles = (0, 89, 0);
|
||||
start_chest = spawnStruct();
|
||||
start_chest.origin = start_chest_zbarrier.origin;
|
||||
start_chest.angles = start_chest_zbarrier.angles;
|
||||
start_chest.script_noteworthy = "start_chest";
|
||||
start_chest.zombie_cost = 950;
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, 0, 64 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 0, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, -32, 64 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, -32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn( "script_model", start_chest_zbarrier.origin + ( 0, 32, 64 ), 1 );
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel( "collision_clip_32x32x128" );
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
|
||||
level.chests = [];
|
||||
@ -63,69 +63,69 @@ main()
|
||||
init_wallbuys();
|
||||
init_barriers();
|
||||
disable_zombie_spawn_locations();
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( random( array( "start_chest" ) ) );
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init(random(array("start_chest")));
|
||||
scripts\zm\locs\loc_common::init();
|
||||
}
|
||||
|
||||
init_wallbuys()
|
||||
{
|
||||
scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( -11166, -2844, 247 ), ( 0, -86, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -10735, -2960, 247 ), ( 0, 97, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "ak74u_zm", "ak74u", "weapon_upgrade", ( -10656, -752, 247 ), ( 0, 83, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "m16_zm", "m16", "weapon_upgrade", ( -11839, -1695.1, 287 ), ( 0, 270, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "sticky_grenade_zm", "sticky_grenade", "weapon_upgrade", ( -11839, -2406, 283 ), ( 0, -93, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy( "bowie_knife_zm", "bowie_knife", "bowie_upgrade", ( -10787, -1430, 247 ), ( 0, 88, 0 ) );
|
||||
scripts\zm\replaced\utility::wallbuy("m14_zm", "m14", "weapon_upgrade", (-11166, -2844, 247), (0, -86, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("rottweil72_zm", "olympia", "weapon_upgrade", (-10735, -2960, 247), (0, 97, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("ak74u_zm", "ak74u", "weapon_upgrade", (-10656, -752, 247), (0, 83, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("m16_zm", "m16", "weapon_upgrade", (-11839, -1695.1, 287), (0, 270, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("sticky_grenade_zm", "sticky_grenade", "weapon_upgrade", (-11839, -2406, 283), (0, -93, 0));
|
||||
scripts\zm\replaced\utility::wallbuy("bowie_knife_zm", "bowie_knife", "bowie_upgrade", (-10787, -1430, 247), (0, 88, 0));
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
origin = ( -11270, -500, 255 );
|
||||
angles = ( 0, 195, 0 );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToRight(angles) * -25) + (anglesToForward(angles) * 150), angles );
|
||||
scripts\zm\replaced\utility::barrier( "veh_t6_civ_60s_coupe_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * 125) + (anglesToRight(angles) * 25), angles );
|
||||
scripts\zm\replaced\utility::barrier( "veh_t6_civ_smallwagon_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * -30) + (anglesToRight(angles) * 50), angles + (0, -90, 0) );
|
||||
origin = (-11270, -500, 255);
|
||||
angles = (0, 195, 0);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_512x512x10", origin + (anglesToRight(angles) * -25) + (anglesToForward(angles) * 150), angles);
|
||||
scripts\zm\replaced\utility::barrier("veh_t6_civ_60s_coupe_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * 125) + (anglesToRight(angles) * 25), angles);
|
||||
scripts\zm\replaced\utility::barrier("veh_t6_civ_smallwagon_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * -30) + (anglesToRight(angles) * 50), angles + (0, -90, 0));
|
||||
|
||||
origin = ( -10750, -3275, 255 );
|
||||
angles = ( 0, 195, 0 );
|
||||
scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToRight(angles) * 55), angles );
|
||||
scripts\zm\replaced\utility::barrier( "veh_t6_civ_movingtrk_cab_dead", origin, angles );
|
||||
origin = (-10750, -3275, 255);
|
||||
angles = (0, 195, 0);
|
||||
scripts\zm\replaced\utility::barrier("collision_player_wall_512x512x10", origin + (anglesToRight(angles) * 55), angles);
|
||||
scripts\zm\replaced\utility::barrier("veh_t6_civ_movingtrk_cab_dead", origin, angles);
|
||||
}
|
||||
|
||||
disable_zombie_spawn_locations()
|
||||
{
|
||||
for ( z = 0; z < level.zone_keys.size; z++ )
|
||||
for (z = 0; z < level.zone_keys.size; z++)
|
||||
{
|
||||
zone = level.zones[ level.zone_keys[ z ] ];
|
||||
|
||||
i = 0;
|
||||
|
||||
while ( i < zone.spawn_locations.size )
|
||||
while (i < zone.spawn_locations.size)
|
||||
{
|
||||
if ( zone.spawn_locations[ i ].origin == ( -11447, -3424, 254.2 ) )
|
||||
if (zone.spawn_locations[ i ].origin == (-11447, -3424, 254.2))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -11093, 393, 192 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-11093, 393, 192))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -10944, -3846, 221.14 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-10944, -3846, 221.14))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -10836, 1195, 209.7 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-10836, 1195, 209.7))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -11251, -4397, 200.02 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-11251, -4397, 200.02))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -11334, -5280, 212.7 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-11334, -5280, 212.7))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
else if ( zone.spawn_locations[ i ].origin == ( -11347, -3134, 283.9 ) )
|
||||
else if (zone.spawn_locations[ i ].origin == (-11347, -3134, 283.9))
|
||||
{
|
||||
zone.spawn_locations[ i ].is_enabled = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user