94 lines
11 KiB
Plaintext
94 lines
11 KiB
Plaintext
#using scripts\codescripts\struct;
|
|
#using scripts\mp\_util;
|
|
|
|
#using scripts\shared\compass;
|
|
|
|
|
|
|
|
#using scripts\mp\gametypes\_globallogic;
|
|
#using scripts\mp\gametypes\_spawning;
|
|
#using scripts\mp\gametypes\_spawnlogic;
|
|
|
|
#using scripts\mp\_load;
|
|
|
|
#using scripts\mp\mp_apartments_amb;
|
|
#using scripts\mp\mp_apartments_fx;
|
|
|
|
#precache( "model", "collision_clip_cylinder_32x128" );
|
|
#precache( "model", "collision_clip_wall_256x256x10" );
|
|
#precache( "model", "p7_debris_wood_plywood_4x8_flat_white_wet" );
|
|
|
|
|
|
|
|
|
|
|
|
#precache( "model", "p7_fan_electric_wallmounted_dirty" ); #precache( "model", "p7_microwave_red" ); #precache( "model", "p7_luggage_soft_small_roller_blue" ); #precache( "model", "p7_container_aid_box_dirty" ); #precache( "model", "p7_container_medical_01_worn" ); #precache( "model", "p7_consumer_grade_pc_opened" ); #precache( "model", "p7_furn_couch_modern_01_seat_l" ); #precache( "model", "p7_rolled_tarp" ); #precache( "model", "p7_truss_framing_modular_section_128" ); #precache( "model", "p7_street_safety_water_barrier_sm_wt" ); #precache( "model", "p7_box_cardboard_a_closed" ); #precache( "model", "p7_hazmat_suit_hanging_03" ); #precache( "model", "p7_trash_bin_single_03_blue_lt" ); #precache( "model", "p7_barrel_plastic_yellow" ); #precache( "model", "p7_barrel_plastic" ); #precache( "model", "p7_bench_modern_01_wood_orange" ); #precache( "model", "p7_crate_lab_plastic_locking_crate" ); #precache( "model", "p7_debris_wood_plywood_4x8_cracked_white" ); #precache( "model", "p7_medical_gurney_02" ); #precache( "model", "p7_medical_refrigerator_hp" ); #precache( "model", "p7_mattress_cloth_queen_folded" ); #precache( "model", "p7_cai_stacking_cargo_crate_blue" ); #precache( "model", "p7_door_metal_industrial_02_left_white" ); #precache( "model", "p7_fxanim_gp_banner_quarantine_tattered_btm_01_s3_mod_ph" ); #precache( "model", "p7_cai_tent_camping_02_worn" ); #precache( "model", "p7_refrigerator_stainless_lg_01" ); #precache( "model", "p7_furn_couch_modern_01_base" );
|
|
|
|
function main()
|
|
{
|
|
//needs to be first for create fx
|
|
mp_apartments_fx::main();
|
|
|
|
level.add_raps_drop_locations = &add_raps_drop_locations;
|
|
level.remotemissile_kill_z = ( ( 650 ) + ( 50 ) ); // override kill z for Hellstorm missile
|
|
|
|
load::main();
|
|
|
|
compass::setupMiniMap("compass_map_mp_apartments");
|
|
|
|
mp_apartments_amb::main();
|
|
|
|
// Set up the default range of the compass
|
|
SetDvar("compassmaxrange","2100");
|
|
|
|
SetDvar( "phys_buoyancy", 1 );
|
|
SetDvar( "phys_ragdoll_buoyancy", 1 );
|
|
|
|
//Spawning clip over ledge windows to prevent sitting on railing
|
|
spawncollision("collision_clip_wall_256x256x10","collider",( -944.403 , -907.351 , 1475.01 ), ( 0, 90, -90));
|
|
|
|
// Spawn plywood boards to cover open windows above lower ledge / pit
|
|
board1 = spawn("script_model",( -895.394 , -903.731 , 1420.55 ));
|
|
board1.angles = (0 , 0 , -90);
|
|
board1 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board2 = spawn("script_model",( -943.14 , -904.731 , 1420.55 ));
|
|
board2.angles = (0 , 0 , -90);
|
|
board2 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board3 = spawn("script_model",( -996.733 , -903.731 , 1420.55 ));
|
|
board3.angles = (0 , 0 , -90);
|
|
board3 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board4 = spawn("script_model",( -1043.21 , -904.731 , 1420.55 ));
|
|
board4.angles = (0 , 0 , -90);
|
|
board4 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board5 = spawn("script_model",( -895.394 , -904.731 , 1393.59 ));
|
|
board5.angles = (0 , 0 , -90);
|
|
board5 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board6 = spawn("script_model",( -943.14 , -905.731 , 1393.59 ));
|
|
board6.angles = (0 , 0 , -90);
|
|
board6 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board7 = spawn("script_model",( -996.733 , -904.731 , 1393.59 ));
|
|
board7.angles = (0 , 0 , -90);
|
|
board7 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
board8 = spawn("script_model",( -1043.21 , -905.731 , 1393.59));
|
|
board8.angles = (0 , 0 , -90);
|
|
board8 SetModel("p7_debris_wood_plywood_4x8_flat_white_wet");
|
|
|
|
//Spawning clip over ledge windows to prevent sitting on railing
|
|
spawncollision("collision_clip_cylinder_32x128","collider",( -2155.05 , -1682.18 , 1691.28 ), ( 0, 0, 0));
|
|
spawncollision("collision_clip_cylinder_32x128","collider",( -2155.05 , -1682.18 , 1799.26 ), ( 0, 0, 0));
|
|
spawncollision("collision_clip_cylinder_32x128","collider",( -2155.05 , -1682.18 , 1905.5 ), ( 0, 0, 0));
|
|
|
|
// Stockpile hub points
|
|
level.cleanDepositPoints = Array ( ( -2348.08 , -639.428 , 1215.81 ),
|
|
( -186.08 , -415.428 , 1344.81 ),
|
|
( 70.9199 , -1853.93 , 1344.81 ),
|
|
( -1352.58 , -913.428 , 1226.81 ),
|
|
( -434.08 , 660.072 , 1346.81 ) );
|
|
|
|
}
|
|
|
|
function add_raps_drop_locations( &drop_candidate_array )
|
|
{
|
|
if ( !isdefined( drop_candidate_array ) ) drop_candidate_array = []; else if ( !IsArray( drop_candidate_array ) ) drop_candidate_array = array( drop_candidate_array ); drop_candidate_array[drop_candidate_array.size]=( -560, -2020, 1355 );; // just outside the kitchen
|
|
}
|