86 lines
10 KiB
Plaintext
86 lines
10 KiB
Plaintext
#using scripts\codescripts\struct;
|
|
|
|
#using scripts\shared\compass;
|
|
#using scripts\shared\util_shared;
|
|
|
|
|
|
|
|
#using scripts\mp\_load;
|
|
#using scripts\mp\_util;
|
|
|
|
#using scripts\mp\mp_chinatown_fx;
|
|
#using scripts\mp\mp_chinatown_sound;
|
|
|
|
|
|
|
|
|
|
|
|
#precache( "model", "p7_ac_unit_metal_med" ); #precache( "model", "p7_electrical_box_set2_box01" ); #precache( "model", "p7_cai_vase_ceramic_01" ); #precache( "model", "p7_backpack_canvas" ); #precache( "model", "p7_table_rectangle_wood_02" ); #precache( "model", "p7_sin_busstopsign_01_dmg" ); #precache( "model", "p7_chair_plush_fancy_01_cloth_white_dirty" ); #precache( "model", "p7_barrel_keg_beer_metal_rusty" ); #precache( "model", "p7_ac_unit_metal_med_long" ); #precache( "model", "p7_sin_signage_shop_vrt_07" ); #precache( "model", "p7_lab_bio_canister_weapon_empty" ); #precache( "model", "p7_sin_signage_sidewalk_board_02" ); #precache( "model", "p7_trashcan_modern_worn" ); #precache( "model", "p7_target_firing_range_wood_01" ); #precache( "model", "p7_trash_bin_single_03_grey" ); #precache( "model", "p7_street_safety_fence" ); #precache( "model", "p7_water_container_plastic_large_empty_blue" ); #precache( "model", "p7_sin_solar_junction_box_a" ); #precache( "model", "p7_trash_bin_double_02_green" ); #precache( "model", "p7_barrier_block_concrete_1" ); #precache( "model", "p7_washing_machine_dirty" ); #precache( "model", "p7_round_folding_table_legs_folded" ); #precache( "model", "p7_street_safety_water_barrier_og" ); #precache( "model", "p7_barricade_concrete_modular_01" ); #precache( "model", "p7_sin_rowhouse_column_a1" ); #precache( "model", "p7_foliage_palm_date_med_half_crown_curve_ph" ); #precache( "model", "p7_lab_spotlight_generator_tall" );
|
|
|
|
function main()
|
|
{
|
|
precache();
|
|
|
|
mp_chinatown_fx::main();
|
|
mp_chinatown_sound::main();
|
|
|
|
level.remotemissile_kill_z = ( ( -435 ) + ( 50 ) );
|
|
|
|
load::main();
|
|
|
|
//compass map function, uncomment when adding the minimap
|
|
compass::setupMiniMap("compass_map_mp_chinatown");
|
|
|
|
SetDvar( "compassmaxrange", "2100" ); // Set up the default range of the compass
|
|
|
|
// Set up some generic War Flag Names.
|
|
// Example from COD5: CALLSIGN_SEELOW_A is the name of the 1st flag in Selow whose string is "Cottage"
|
|
// The string must have MPUI_CALLSIGN_ and _A. Replace Mapname with the name of your map/bsp and in the
|
|
// actual string enter a keyword that names the location (Roundhouse, Missle Silo, Launchpad, Guard Tower, etc)
|
|
|
|
game["strings"]["war_callsign_a"] = &"MPUI_CALLSIGN_MAPNAME_A";
|
|
game["strings"]["war_callsign_b"] = &"MPUI_CALLSIGN_MAPNAME_B";
|
|
game["strings"]["war_callsign_c"] = &"MPUI_CALLSIGN_MAPNAME_C";
|
|
game["strings"]["war_callsign_d"] = &"MPUI_CALLSIGN_MAPNAME_D";
|
|
game["strings"]["war_callsign_e"] = &"MPUI_CALLSIGN_MAPNAME_E";
|
|
|
|
game["strings_menu"]["war_callsign_a"] = "@MPUI_CALLSIGN_MAPNAME_A";
|
|
game["strings_menu"]["war_callsign_b"] = "@MPUI_CALLSIGN_MAPNAME_B";
|
|
game["strings_menu"]["war_callsign_c"] = "@MPUI_CALLSIGN_MAPNAME_C";
|
|
game["strings_menu"]["war_callsign_d"] = "@MPUI_CALLSIGN_MAPNAME_D";
|
|
game["strings_menu"]["war_callsign_e"] = "@MPUI_CALLSIGN_MAPNAME_E";
|
|
|
|
//Spawn collision to prevent mantling inside 3rd floor of blue building.
|
|
SpawnCollision("collision_clip_128x128x128", "collider", ( -814.75 , 1490.75 , 354.75 ), ( 0, 0, 0 ) );
|
|
SpawnCollision("collision_clip_256x256x256", "collider", ( -694.25 , 1553.5 , 298.25 ), ( 0, 315, 0 ) );
|
|
SpawnCollision("collision_clip_128x128x128", "collider", ( -788.25 , 1554.75 , 354.75 ), ( 0, 315, 0 ) );
|
|
|
|
//Spawn collision to prevent wall-running above spikes on blue building.
|
|
SpawnCollision("collision_clip_wedge_32x128", "collider", ( -898 , 1074 , 388 ), ( 0, 315, 0 ) );
|
|
SpawnCollision("collision_clip_wedge_32x128", "collider", ( -864 , 1599.25 , 381.75 ), ( 0, 315, 0 ) );
|
|
|
|
// One last one on the blue building to stop mantling into the building
|
|
SpawnCollision( "collision_player_64x64x256", "collider", ( -840, 1540, 366 ), ( 0, 25, 0 ) );
|
|
|
|
if ( util::IsPropHuntGametype() )
|
|
{
|
|
SpawnCollision( "collision_player_64x64x256", "collider", ( -853 , 1187 , 192 ), ( 0, 45, 0 ) );
|
|
SpawnCollision( "collision_player_64x64x256", "collider", ( -853 , 1187 , 415 ), ( 0, 45, 0 ) );
|
|
SpawnCollision( "collision_clip_256x256x256", "collider", ( -746 , 1201 , 181 ), ( 0, 0, 0 ) );
|
|
SpawnCollision( "collision_clip_64x64x256", "collider", ( -969 , -1839 , 132 ), ( 0, 135, 0 ) );
|
|
|
|
SpawnCollision( "collision_clip_wall_256x256x10", "collider", ( -376 , -1491 , 141 ), ( 0, 314, 0 ) );
|
|
}
|
|
|
|
// Stockpile hub points
|
|
level.cleanDepositPoints = Array ( ( -97.928 , -7.61413 , 0.125 ),
|
|
( 1384.68 , 1934.86 , 8.125 ),
|
|
( 438.717 , 1 , 144.125 ),
|
|
( 857.493 , -1991.98 , 24.125 ) );
|
|
}
|
|
|
|
function precache()
|
|
{
|
|
// DO ALL PRECACHING HERE
|
|
}
|