Added all the remaining scripts not previously included.

This commit is contained in:
JezuzLizard
2021-08-07 11:29:26 -07:00
parent cf8d60b2d0
commit 98bfc67831
1001 changed files with 239603 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,93 @@
#include maps/mp/gametypes/_spawning;
#include maps/mp/_compass;
#include maps/mp/gametypes/_globallogic_utils;
#include maps/mp/_utility;
#include common_scripts/utility;
main()
{
level.levelspawndvars = ::levelspawndvars;
maps/mp/mp_uplink_fx::main();
precachemodel( "collision_physics_128x128x10" );
precachemodel( "collision_physics_256x256x10" );
precachemodel( "collision_physics_64x64x10" );
precachemodel( "collision_physics_32x32x10" );
maps/mp/_load::main();
maps/mp/mp_uplink_amb::main();
maps/mp/_compass::setupminimap( "compass_map_mp_uplink" );
setdvar( "compassmaxrange", "2100" );
registerclientfield( "world", "trigger_lightning", 1, 1, "int" );
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";
spawncollision( "collision_physics_128x128x10", "collider", ( 1661, 345,5, 298,5 ), ( 0, 1, 0 ) );
spawncollision( "collision_physics_128x128x10", "collider", ( 1661, 345,5, 313,5 ), ( 0, 1, 0 ) );
spawncollision( "collision_physics_256x256x10", "collider", ( 3257, -3,5, 872,5 ), ( 360, 270, 90 ) );
spawncollision( "collision_physics_256x256x10", "collider", ( 3394, -136,5, 872,5 ), ( 270, 183,902, 86,0983 ) );
spawncollision( "collision_physics_256x256x10", "collider", ( 3270,5, -3,5, 872,5 ), ( 360, 270, 90 ) );
spawncollision( "collision_physics_256x256x10", "collider", ( 3394, 129,5, 872,5 ), ( 270, 183,902, 86,0983 ) );
spawncollision( "collision_physics_256x256x10", "collider", ( 3399,5, 1, 990 ), ( 1,12, 270, 180 ) );
spawncollision( "collision_physics_128x128x10", "collider", ( 2343,5, 865,5, 320,5 ), vectorScale( ( 0, 1, 0 ), 332,7 ) );
spawncollision( "collision_physics_64x64x10", "collider", ( 2291, 904, 316 ), ( 355,461, 27,1924, -2,32818 ) );
spawncollision( "collision_physics_32x32x10", "collider", ( 3049,5, -3452, 339 ), ( 78,6193, 281,502, -105,573 ) );
maps/mp/gametypes/_spawning::level_use_unified_spawning( 1 );
level.remotemotarviewdown = 50;
level thread gondola_sway();
glasses = getstructarray( "glass_shatter_on_spawn", "targetname" );
i = 0;
while ( i < glasses.size )
{
radiusdamage( glasses[ i ].origin, 64, 101, 100 );
i++;
}
}
levelspawndvars( reset_dvars )
{
ss = level.spawnsystem;
ss.enemy_influencer_radius = set_dvar_float_if_unset( "scr_spawn_enemy_influencer_radius", "2350", reset_dvars );
ss.hq_objective_influencer_inner_radius = set_dvar_float_if_unset( "scr_spawn_hq_objective_influencer_inner_radius", "1000", reset_dvars );
}
gondola_sway()
{
gondola_cab = getent( "gondola_cab", "targetname" );
gondola_cab setmovingplatformenabled( 1 );
while ( 1 )
{
randomswingangle = randomfloatrange( 0,25, 0,5 );
randomswingtime = randomfloatrange( 2,5, 4 );
gondola_cab rotateto( ( randomswingangle * 0,5, randomswingangle * 0,6, randomswingangle * 0,8 ), randomswingtime, randomswingtime * 0,3, randomswingtime * 0,3 );
gondola_cab playsound( "amb_gondola_swing" );
wait randomswingtime;
gondola_cab rotateto( ( ( randomswingangle * 0,5 ) * -1, ( randomswingangle * -1 ) * 0,6, ( randomswingangle * 0,8 ) * -1 ), randomswingtime, randomswingtime * 0,3, randomswingtime * 0,3 );
gondola_cab playsound( "amb_gondola_swing_back" );
wait randomswingtime;
gondola_cab destroy_corpses();
}
}
destroy_corpses()
{
time = getTime();
corpses = getcorpsearray();
i = 0;
while ( i < corpses.size )
{
if ( ( corpses[ i ].birthtime + 3000 ) < time )
{
if ( distance2dsquared( corpses[ i ].origin, self.origin ) < 10000 )
{
corpses[ i ] delete();
}
}
i++;
}
}

View File

@ -0,0 +1,6 @@
#include maps/mp/_ambientpackage;
#include maps/mp/_utility;
main()
{
}

View File

@ -0,0 +1,106 @@
#include maps/mp/_utility;
#using_animtree( "fxanim_props" );
#using_animtree( "fxanim_props_dlc3" );
main()
{
precache_fxanim_props();
precache_fxanim_props_dlc3();
precache_scripted_fx();
precache_createfx_fx();
maps/mp/createfx/mp_uplink_fx::main();
}
precache_scripted_fx()
{
}
precache_createfx_fx()
{
level._effect[ "fx_mp_uplink_rain_med_fast_os" ] = loadfx( "weather/fx_mp_uplink_rain_med_fast_os" );
level._effect[ "fx_mp_uplink_rain_med_fast_os_vista" ] = loadfx( "weather/fx_mp_uplink_rain_med_fast_os_vista" );
level._effect[ "fx_mp_uplink_rain_med_fast_neg_os" ] = loadfx( "weather/fx_mp_uplink_rain_med_fast_neg_os" );
level._effect[ "fx_mp_uplink_rain_med_fast_neg_os_vista" ] = loadfx( "weather/fx_mp_uplink_rain_med_fast_neg_os_vista" );
level._effect[ "fx_mp_upl_rain_gust_md" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_gust_md" );
level._effect[ "fx_mp_upl_rain_gust_lg" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_gust_lg" );
level._effect[ "fx_mp_upl_rain_gust_lg_neg" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_gust_lg" );
level._effect[ "fx_mp_upl_rain_gust_md_neg" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_gust_md_neg" );
level._effect[ "fx_mp_upl_rain_splash_50" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_splash_50" );
level._effect[ "fx_mp_upl_rain_splash_100" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_splash_100" );
level._effect[ "fx_mp_upl_rain_splash_200" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_splash_200" );
level._effect[ "fx_mp_upl_rain_splash_300" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_splash_300" );
level._effect[ "fx_mp_upl_rain_splash_400" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_splash_400" );
level._effect[ "fx_water_pipe_gutter_md" ] = loadfx( "water/fx_water_pipe_gutter_md" );
level._effect[ "fx_mp_water_roof_spill_lg_hvy" ] = loadfx( "maps/mp_maps/fx_mp_water_roof_spill_lg_hvy" );
level._effect[ "fx_mp_water_roof_spill_lg_hvy_lng" ] = loadfx( "maps/mp_maps/fx_mp_water_roof_spill_lg_hvy_lng" );
level._effect[ "fx_mp_water_roof_spill_md_hvy" ] = loadfx( "maps/mp_maps/fx_mp_water_roof_spill_md_hvy" );
level._effect[ "fx_mp_water_roof_spill_splash_shrt" ] = loadfx( "maps/mp_maps/fx_mp_water_roof_spill_splash_shrt" );
level._effect[ "fx_mp_water_roof_spill_splash_xshrt" ] = loadfx( "maps/mp_maps/fx_mp_water_roof_spill_splash_xshrt" );
level._effect[ "fx_mp_fog_cool_ground" ] = loadfx( "maps/mp_maps/fx_mp_fog_cool_ground" );
level._effect[ "fx_mp_distant_cloud_vista" ] = loadfx( "maps/mp_maps/fx_mp_upl_distant_cloud_vista" );
level._effect[ "fx_mp_uplink_lightning_lg" ] = loadfx( "weather/fx_mp_uplink_lightning_lg" );
level._effect[ "fx_mp_upl_window_rain1_splash" ] = loadfx( "maps/mp_maps/fx_mp_upl_window_rain1_splash" );
level._effect[ "fx_mp_uplink_rain_window_roof_med" ] = loadfx( "weather/fx_mp_uplink_rain_window_roof_med" );
level._effect[ "fx_mp_uplink_rain_window_gust" ] = loadfx( "weather/fx_mp_uplink_rain_window_gust" );
level._effect[ "fx_mp_upl_cloud_geo" ] = loadfx( "maps/mp_maps/fx_mp_upl_cloud_geo" );
level._effect[ "fx_lf_mp_uplink_sun1" ] = loadfx( "lens_flares/fx_lf_mp_uplink_sun1" );
level._effect[ "fx_lf_mp_uplink_anamorphic" ] = loadfx( "lens_flares/fx_lf_mp_uplink_anamorphic" );
level._effect[ "fx_lf_mp_uplink_anamorphic2" ] = loadfx( "lens_flares/fx_lf_mp_uplink_anamorphic2" );
level._effect[ "fx_mp_upl_rain_lit_corona" ] = loadfx( "maps/mp_maps/fx_mp_upl_rain_lit_corona" );
level._effect[ "fx_drone_rectangle_light" ] = loadfx( "light/fx_light_flour_glow_yellow" );
level._effect[ "fx_light_flour_glow_yellow_sm" ] = loadfx( "light/fx_light_flour_glow_yellow_sm" );
level._effect[ "fx_light_flour_glow_yellow_xsm" ] = loadfx( "light/fx_light_flour_glow_yellow_xsm" );
level._effect[ "fx_drone_rectangle_light_03" ] = loadfx( "light/fx_drone_rectangle_light_03" );
level._effect[ "fx_drone_rectangle_light_blue" ] = loadfx( "maps/mp_maps/fx_mp_upl_rectangle_light_blue" );
level._effect[ "fx_light_beacon_yellow" ] = loadfx( "light/fx_light_beacon_yellow" );
level._effect[ "fx_light_beacon_red_blink_fst" ] = loadfx( "light/fx_light_beacon_red_blink_fst" );
level._effect[ "fx_light_beacon_red_blink_fst_sm" ] = loadfx( "light/fx_light_beacon_red_blink_fst_sm" );
level._effect[ "fx_light_exit_sign" ] = loadfx( "light/fx_light_exit_sign_gLow" );
level._effect[ "fx_light_recessed_cool" ] = loadfx( "maps/mp_maps/fx_mp_upl_light_recessed_cool" );
level._effect[ "fx_light_recessed_blue" ] = loadfx( "light/fx_light_recessed_blue" );
level._effect[ "fx_light_window_glow" ] = loadfx( "light/fx_light_window_glow" );
level._effect[ "fx_mp_upl_window_ray_cool" ] = loadfx( "maps/mp_maps/fx_mp_upl_window_ray_cool" );
level._effect[ "fx_light_floodlight_sqr_wrm" ] = loadfx( "maps/mp_maps/fx_mp_upl_floodlight_sqr_warm" );
level._effect[ "fx_light_floodlight_sqr_cool" ] = loadfx( "maps/mp_maps/fx_mp_upl_floodlight_sqr_cool" );
level._effect[ "fx_light_floodlight_sqr_cool_thin" ] = loadfx( "maps/mp_maps/fx_mp_upl_floodlight_sqr_cool_thin" );
level._effect[ "fx_light_floodlight_sqr_cool_sm" ] = loadfx( "maps/mp_maps/fx_mp_upl_floodlight_sqr_cool_sm" );
level._effect[ "fx_light_floodlight_sqr_cool_md" ] = loadfx( "maps/mp_maps/fx_mp_upl_floodlight_sqr_cool_md" );
level._effect[ "fx_mp_upl_floodlight_yellow" ] = loadfx( "maps/mp_maps/fx_mp_upl_floodlight_yellow" );
level._effect[ "fx_upl_light_ray_sun_window_1s" ] = loadfx( "light/fx_upl_light_ray_sun_window_1s" );
level._effect[ "fx_upl_light_ray_sun_window_lg_1s" ] = loadfx( "light/fx_upl_light_ray_sun_window_lg_1s" );
level._effect[ "fx_mp_upl_generator_grays" ] = loadfx( "maps/mp_maps/fx_mp_upl_generator_grays" );
level._effect[ "fx_light_flour_glow_v_shape_cool_sm" ] = loadfx( "light/fx_light_flour_glow_v_shape_cool_sm" );
level._effect[ "fx_light_flour_glow_v_shape_cool" ] = loadfx( "light/fx_light_upl_flour_glow_v_shape_cool" );
level._effect[ "fx_light_gray_yllw_ribbon" ] = loadfx( "light/fx_light_gray_yllw_ribbon" );
level._effect[ "fx_light_gray_blue_ribbon" ] = loadfx( "light/fx_light_gray_blue_ribbon" );
level._effect[ "fx_mp_upl_waterfall01" ] = loadfx( "maps/mp_maps/fx_mp_upl_waterfall01" );
level._effect[ "fx_mp_upl_waterfall02" ] = loadfx( "maps/mp_maps/fx_mp_upl_waterfall02" );
level._effect[ "fx_mp_upl_waterfall_splash_bttm" ] = loadfx( "maps/mp_maps/fx_mp_upl_waterfall_splash_bttm" );
level._effect[ "fx_mp_upl_waterfall_splash_fst" ] = loadfx( "maps/mp_maps/fx_mp_upl_waterfall_splash_fst" );
level._effect[ "fx_mp_upl_waterfall_splash_md" ] = loadfx( "maps/mp_maps/fx_mp_upl_waterfall_splash_md" );
level._effect[ "fx_mp_upl_waterfall_vista" ] = loadfx( "maps/mp_maps/fx_mp_upl_waterfall_vista" );
}
precache_fxanim_props()
{
level.scr_anim[ "fxanim_props" ][ "ant_rooftop" ] = %fxanim_gp_antenna_rooftop_anim;
}
precache_fxanim_props_dlc3()
{
level.scr_anim[ "fxanim_props_dlc3" ][ "uplink_gate" ] = %fxanim_mp_uplink_gate_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "uplink_gate_b" ] = %fxanim_mp_uplink_gate_b_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "cliff_sign" ] = %fxanim_mp_uplink_cliff_sign_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "radar01" ] = %fxanim_mp_uplink_vista_radar01_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "radar02" ] = %fxanim_mp_uplink_vista_radar02_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "radar03" ] = %fxanim_mp_uplink_vista_radar03_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "radar04" ] = %fxanim_mp_uplink_vista_radar04_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "radar05" ] = %fxanim_mp_uplink_vista_radar05_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "sat_dish2" ] = %fxanim_gp_satellite_dish2_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "ant_rooftop2_small" ] = %fxanim_gp_antenna_rooftop2_small_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "fence01" ] = %fxanim_mp_uplink_fence01_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "fence02" ] = %fxanim_mp_uplink_fence02_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "vines_01" ] = %fxanim_mp_uplink_vines_01_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "vines_02" ] = %fxanim_mp_uplink_vines_02_anim;
}