Reorganized the scripts so its easier to search thru.

This commit is contained in:
JezuzLizard
2021-08-07 11:41:57 -07:00
parent 98bfc67831
commit fe45c69381
1573 changed files with 152 additions and 4458 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,111 @@
#include maps/mp/gametypes/_spawning;
#include maps/mp/_compass;
#include common_scripts/utility;
#include maps/mp/_utility;
main()
{
level.levelspawndvars = ::levelspawndvars;
maps/mp/mp_paintball_fx::main();
precachemodel( "collision_physics_cylinder_32x128" );
precachemodel( "collision_physics_64x64x10" );
precachemodel( "collision_physics_32x32x10" );
precachemodel( "p6_pai_fence_pole" );
maps/mp/_load::main();
maps/mp/mp_paintball_amb::main();
maps/mp/_compass::setupminimap( "compass_map_mp_paintball" );
setdvar( "compassmaxrange", "2100" );
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_cylinder_32x128", "collider", ( 1071,5, -1998,5, 373,5 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( 1071,5, -1998,5, 262 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( 1071,5, -1998,5, 150 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( 1071,5, -1998,5, 37,5 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1446,5, 524,5, 401,5 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1446,5, 524,5, 290 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1446,5, 524,5, 178 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1446,5, 524,5, 65,5 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1303,5, 1611,5, 394,5 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1303,5, 1611,5, 283 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1303,5, 1611,5, 171 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_cylinder_32x128", "collider", ( -1303,5, 1611,5, 58,5 ), ( 0, 0, 1 ) );
spawncollision( "collision_physics_64x64x10", "collider", ( -104,5, -1176,5, 9 ), ( 9,93, 310, 79,786 ) );
spawncollision( "collision_physics_32x32x10", "collider", ( -105, -1166,5, 38 ), ( 317,842, 319,39, 76,1599 ) );
spawncollision( "collision_physics_32x32x10", "collider", ( -96,5, -1173, 38,5 ), ( 310,109, 322,353, 74,0248 ) );
spawncollision( "collision_physics_32x32x10", "collider", ( -93, -1180,5, 38,5 ), ( 310,109, 322,353, 74,0248 ) );
pole1 = spawn( "script_model", ( 385, 572,5, -39 ) );
pole1.angles = vectorScale( ( 0, 0, 1 ), 282,6 );
pole1 setmodel( "p6_pai_fence_pole" );
maps/mp/gametypes/_spawning::level_use_unified_spawning( 1 );
registerclientfield( "scriptmover", "police_car_lights", 1, 1, "int" );
level thread destructible_lights();
level.remotemotarviewleft = 35;
level.remotemotarviewright = 35;
level.remotemotarviewup = 18;
level thread glass_node_think();
}
levelspawndvars( reset_dvars )
{
ss = level.spawnsystem;
ss.enemy_influencer_radius = set_dvar_float_if_unset( "scr_spawn_enemy_influencer_radius", "2200", reset_dvars );
ss.hq_objective_influencer_inner_radius = set_dvar_float_if_unset( "scr_spawn_hq_objective_influencer_inner_radius", "1200", reset_dvars );
}
destructible_lights()
{
wait 0,05;
destructibles = getentarray( "destructible", "targetname" );
_a98 = destructibles;
_k98 = getFirstArrayKey( _a98 );
while ( isDefined( _k98 ) )
{
destructible = _a98[ _k98 ];
if ( destructible.destructibledef == "veh_t6_police_car_destructible_mp" )
{
destructible thread destructible_think( "police_car_lights" );
destructible setclientfield( "police_car_lights", 1 );
}
_k98 = getNextArrayKey( _a98, _k98 );
}
}
destructible_think( clientfield )
{
self waittill_any( "death", "destructible_base_piece_death" );
self setclientfield( clientfield, 0 );
}
glass_node_think()
{
wait 1;
glass_origin = ( -980,028, -959,375, 60,1195 );
node_origin = ( -981,75, -934,5, 16 );
node = getnearestnode( node_origin );
while ( isDefined( node ) && node.type == "Begin" )
{
ent = spawn( "script_model", node.origin, 1 );
ent setmodel( level.deployedshieldmodel );
ent hide();
ent disconnectpaths();
ent.origin -= vectorScale( ( 0, 0, 1 ), 64 );
for ( ;; )
{
level waittill( "glass_smash", origin );
if ( distancesquared( origin, glass_origin ) < 16384 )
{
ent.origin += vectorScale( ( 0, 0, 1 ), 64 );
ent delete();
return;
}
}
}
}

View File

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

View File

@ -0,0 +1,78 @@
#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_paintball_fx::main();
}
precache_scripted_fx()
{
}
precache_createfx_fx()
{
level._effect[ "fx_pntbll_light_ray_sun_wide_wndw" ] = loadfx( "light/fx_pntbll_light_ray_sun_wide_wndw" );
level._effect[ "fx_pntbll_light_ray_sun_md_lng" ] = loadfx( "light/fx_pntbll_light_ray_sun_md_lng" );
level._effect[ "fx_pntbll_light_ray_sun_md_lng_1s" ] = loadfx( "light/fx_pntbll_light_ray_sun_md_lng_1s" );
level._effect[ "fx_pntbll_light_ray_sun_md_xlng_1s" ] = loadfx( "light/fx_pntbll_light_ray_sun_md_xlng_1s" );
level._effect[ "fx_pntbll_light_ray_sun_md_lng_wd_1s" ] = loadfx( "light/fx_pntbll_light_ray_sun_md_lng_wd_1s" );
level._effect[ "fx_pntbll_light_ray_sun_md_lng_wd" ] = loadfx( "light/fx_pntbll_light_ray_sun_md_lng_wd" );
level._effect[ "fx_pntbll_light_ray_sun_lg_lng_wide" ] = loadfx( "light/fx_pntbll_light_ray_sun_lg_lng_wide" );
level._effect[ "fx_pntbll_light_ray_sun_lg_lng_wide_ln" ] = loadfx( "light/fx_pntbll_light_ray_sun_lg_lng_wide_ln" );
level._effect[ "fx_pntbll_light_ray_sun_md_lng_bright" ] = loadfx( "light/fx_pntbll_light_ray_sun_md_lng_bright" );
level._effect[ "fx_pntbll_light_ray_tree_md_lng" ] = loadfx( "light/fx_pntbll_light_ray_tree_md_lng" );
level._effect[ "fx_pntbll_light_ray_tree_md_lng_thin" ] = loadfx( "light/fx_pntbll_light_ray_tree_md_lng_thin" );
level._effect[ "fx_pntbll_light_ray_tree_md_xlng_thin" ] = loadfx( "light/fx_pntbll_light_ray_tree_md_xlng_thin" );
level._effect[ "fx_pntbll_light_ray_camo_net_md" ] = loadfx( "light/fx_pntbll_light_ray_camo_net_md" );
level._effect[ "fx_pntbll_light_ray_camo_net_lng_dim" ] = loadfx( "light/fx_pntbll_light_ray_camo_net_lng_dim" );
level._effect[ "fx_pntbll_light_ray_shop_md_lng_thin" ] = loadfx( "light/fx_pntbll_light_ray_shop_md_lng_thin" );
level._effect[ "fx_pntbll_light_ray_shop_md_lng_dim" ] = loadfx( "light/fx_pntbll_light_ray_shop_md_lng_dim" );
level._effect[ "fx_pntbll_light_ray_shop_md_lng_wide" ] = loadfx( "light/fx_pntbll_light_ray_shop_md_lng_wide" );
level._effect[ "fx_light_flour_glow_yellow" ] = loadfx( "light/fx_light_flour_glow_yellow" );
level._effect[ "fx_mp_light_dust_motes_md" ] = loadfx( "maps/mp_maps/fx_mp_light_dust_motes_md" );
level._effect[ "fx_light_dust_motes_xsm_short" ] = loadfx( "light/fx_concert_dust_motes_xsm_short" );
level._effect[ "fx_light_dust_motes_sm" ] = loadfx( "light/fx_light_dust_motes_sm" );
level._effect[ "fx_dust_motes_blowing_sm" ] = loadfx( "debris/fx_dust_motes_blowing_sm" );
level._effect[ "fx_insects_swarm_md_light" ] = loadfx( "bio/insects/fx_insects_swarm_md_light" );
level._effect[ "fx_insects_swarm_lg_light" ] = loadfx( "bio/insects/fx_insects_swarm_lg_light" );
level._effect[ "fx_mp_pntbll_steam_thck_md" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_steam_thck_md" );
level._effect[ "fx_mp_pntbll_steam_thck_sm" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_steam_thck_sm" );
level._effect[ "fx_mp_pntbll_steam_thck_xsm" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_steam_thck_xsm" );
level._effect[ "fx_mp_pntbll_steam_thck_gray" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_steam_thck_gray" );
level._effect[ "fx_mp_steam_vent_ceiling" ] = loadfx( "maps/mp_maps/fx_mp_steam_vent_ceiling" );
level._effect[ "fx_mp_steam_vent_ceiling_lg" ] = loadfx( "maps/mp_maps/fx_mp_steam_vent_ceiling_lg" );
level._effect[ "fx_mp_vent_steam_lite_wind" ] = loadfx( "maps/mp_maps/fx_mp_vent_steam_lite_wind" );
level._effect[ "fx_mp_pntbll_smk_truck_md" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_smk_truck_md" );
level._effect[ "fx_mp_pntbll_smk_truck_sm" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_smk_truck_sm" );
level._effect[ "fx_leaves_falling_pine_nowind" ] = loadfx( "foliage/fx_leaves_falling_pine_nowind" );
level._effect[ "fx_mp_light_police_car" ] = loadfx( "maps/mp_maps/fx_mp_light_police_car" );
level._effect[ "fx_light_stadium_flood" ] = loadfx( "light/fx_light_stadium_flood" );
level._effect[ "fx_light_stadium_flood_flckr" ] = loadfx( "light/fx_light_stadium_flood_flckr" );
level._effect[ "fx_light_recessed_cool_sm_soft" ] = loadfx( "light/fx_light_recessed_cool_sm_soft" );
level._effect[ "fx_light_track_omni" ] = loadfx( "light/fx_light_track_omni" );
level._effect[ "fx_mp_pntbll_paint_drips" ] = loadfx( "maps/mp_maps/fx_mp_pntbll_paint_drips" );
level._effect[ "fx_lf_mp_paintball_sun1" ] = loadfx( "lens_flares/fx_lf_mp_paintball_sun1" );
level._effect[ "fx_mp_light_police_car" ] = loadfx( "maps/mp_maps/fx_mp_light_police_car" );
}
precache_fxanim_props()
{
level.scr_anim = [];
level.scr_anim[ "fxanim_props" ] = [];
}
precache_fxanim_props_dlc3()
{
level.scr_anim[ "fxanim_props_dlc3" ][ "wires_01" ] = %fxanim_mp_paint_wires_01_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "wires_02" ] = %fxanim_mp_paint_wires_02_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "shop_banners" ] = %fxanim_paint_shop_banner_01_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "shop_banners_wall" ] = %fxanim_paint_shop_banner_02_anim;
level.scr_anim[ "fxanim_props_dlc3" ][ "wires_03" ] = %fxanim_mp_paint_wires_03_anim;
}