Skip to content

Commit

Permalink
Merged anv_versus into map specific scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Treescrub committed Jul 7, 2021
1 parent f330d35 commit b6482e6
Show file tree
Hide file tree
Showing 58 changed files with 2,607 additions and 3,222 deletions.
16 changes: 15 additions & 1 deletion scripts/vscripts/anv_mapfixes.nut
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ __CollectEventCallbacks( this, "OnGameEvent_", "GameEventCallbacks", RegisterScr

if ( HasPlayerControlledZombies() )
{
EntFire( "worldspawn", "RunScriptFile", "anv_versus" );
if( g_MapName == "tutorial_standards_vs" )
{
EntFire( "worldspawn", "RunScriptFile", "anv_standards" );
}

// If it's VS Survival (mutation15), delete new props that obstruct
// Survivor movement since their play space is already limited. This
Expand All @@ -105,6 +108,17 @@ __CollectEventCallbacks( this, "OnGameEvent_", "GameEventCallbacks", RegisterScr
}
}

// Only run if it's Versus and not Taaannnk!! Mutation. Instantly warps
// Tanks that spawn unreasonably far away from Survivors or exposed.
// Note this runs even for all "COMMUNITY" maps and other Mutations so
// requires unique scope to not overwrite their "tank_spawn" events.
// Needs to run for both rounds or else both teams won't get warped.

if ( g_BaseMode == "versus" && g_MutaMode != "mutation19" )
{
EntFire( "worldspawn", "RunScriptFile", "anv_tankwarps" );
}

// Map fixes for Valve.
// Dev Thread: https://steamcommunity.com/app/550/discussions/1/1651043320659915818/

Expand Down
30 changes: 29 additions & 1 deletion scripts/vscripts/anv_mapfixes/c10m1_caves.nut
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,32 @@ make_clip( "_dispcrouch_endrockparkour", "Everyone", 1, "-8 -116 0", "8 56 115",
// Not confirmed canon -- but probably.

make_prop( "dynamic", "_crashcourse_armoredvan_glass", "models/props_vehicles/deliveryvan_armored_glass.mdl", "-11274 -15292 -150.2", "14.32 90 -5.15", "shadow_no" );
make_prop( "dynamic", "_crashcourse_armoredvan", "models/props_vehicles/deliveryvan_armored.mdl", "-11274 -15292 -150.2", "14.32 90 -5.15" );
make_prop( "dynamic", "_crashcourse_armoredvan", "models/props_vehicles/deliveryvan_armored.mdl", "-11274 -15292 -150.2", "14.32 90 -5.15" );

if ( HasPlayerControlledZombies() )
{
kill_funcinfclip( 698.195 ); // Delete clip directly above bridge tunnel entrance, then patch in exploits created
kill_funcinfclip( 1086.93 ); // Delete clip on tunnel entrance side of the hill
kill_funcinfclip( 1105.65 ); // Delete clip on overpass side of the hill
make_brush( "_losfix_semi", "-50 -1 -15", "50 1 15", "-12260 -11102 -49" );
make_brush( "_losfix_earlyvan", "-48 -1 -8", "48 1 8", "-12318 -8360 -56" );
make_brush( "_losfix_latevan1", "-1 -45 -8", "0 45 18", "-12951 -6686 -56" );
make_brush( "_losfix_latevan2", "-45 -1 -8", "45 0 18", "-12997 -6640 -56" );
make_clip( "_ladder_bridgetunnel_backboard", "Everyone", 1, "-248 -10 -84", "308 6 48", "-12348 -9814 272" );
make_clip( "_ladder_bridgetunnel_clip", "Everyone", 1, "-8 -8 0", "22 3 74", "-12617 -9856 -50", "0 21 0" );
make_clip( "_meticulous_funcinfclip01", "SI Players", 1, "-415 -16 0", "401 45 782", "-12353 -9664 496" );
make_clip( "_meticulous_funcinfclip02", "SI Players", 1, "-8 -420 -128", "45 550 782", "-11980 -9735 496" );
make_clip( "_meticulous_funcinfclip03", "SI Players", 1, "-8 -89 0", "45 55 782", "-12031 -9735 496" );
make_clip( "_meticulous_funcinfclip04", "SI Players", 1, "-38 -16 -144", "218 16 782", "-12975 -9745 496", "0 23 0" );
make_clip( "_yesdrawcliff_clip1", "SI Players", 1, "-510 -17 -128", "464 17 782", "-11472 -10279 496", "0 -11 0" );
make_clip( "_yesdrawcliff_clip2", "SI Players", 1, "-510 -17 -128", "464 17 782", "-10881 -10752 496", "0 108 0" );
make_ladder( "_ladder_bridgetunnelB1_cloned_endfencedumpster", "-12168 -5667 -12", "-467 -4199 22" );
make_ladder( "_ladder_bridgetunnelB2_cloned_endfencesafehouse", "-10352 -4599 677.106", "-2912 -5267 -3532", "17 0 0" );
make_ladder( "_ladder_bridgetunnelT_cloned_firsttunnelhole", "-12352 -8413 56", "-115 -1411 320" );
make_ladder( "_ladder_trafficlightB_cloned_secondtunnelhole", "-13047.5 -6072 56", "-14008 4027 3239", "-16 72 -3", "0.32 0.95 0" );
make_ladder( "_ladder_trafficlightT_cloned_secondtunnelhole", "-13047.5 -6072 56", "-14053 3927 3628", "-16.8 72 -3", "0.32 0.95 0" );
make_prop( "dynamic", "_bridgetunnel_wrongway", "models/props_misc/wrongway_sign01_optimized.mdl", "-11988 -9752 544", "0 180 0", "shadow_no", "solid_no", "255 255 255", "17", "217" );
make_prop( "dynamic", "_yesdrawcliff_rocks1", "models/props_wasteland/rock_cliff01.mdl", "-11723 -9966 520", "0 273 0", "shadow_no" );
make_prop( "dynamic", "_yesdrawcliff_rocks2", "models/props_wasteland/rock_cliff01.mdl", "-11429 -10350 520", "0 0 0", "shadow_no" );
make_trigmove( "_duckqol_trafficlight", "Duck", "-8 -8 -32", "8 16 32", "-12158 -9866 60" );
}
33 changes: 33 additions & 0 deletions scripts/vscripts/anv_mapfixes/c10m2_drainage.nut
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,37 @@ if ( g_BaseMode == "versus" )
make_clip( "_commonhop_pipe", "Survivors", 1, "-4 -104 -56", "4 104 56", "-8044 -7280 -408" );
make_clip( "_cliprework_commonhop", "Survivors", 1, "-172 -8 -44", "172 8 44", "-6452 -6008 136" );

}

if ( HasPlayerControlledZombies() )
{
make_brush( "_losfix_bridge_base1", "-19 -1 -78", "19 1 78", "-8693 -8517 -498" );
make_brush( "_losfix_bridge_base2", "-53 -1 -35", "53 1 35", "-8404 -8517 -541" );
make_brush( "_losfix_bridge_base3", "-19 -1 -78", "19 1 78", "-8115 -8517 -498" );
make_brush( "_losfix_bridge_base4", "-18 -40 -1", "20 42 1", "-8693 -8568 -400" );
make_brush( "_losfix_bridge_base5", "-18 -40 -1", "20 42 1", "-8117 -8568 -400" );
make_brush( "_losfix_dynamic_bridge1", "-107 -1 -84", "107 1 84", "-8566 -8525 -289" );
make_brush( "_losfix_dynamic_bridge2", "-107 -1 -84", "107 1 84", "-8243 -8525 -289" );
make_brush( "_losfix_dynamic_bridge_floor1", "-134 -43 -1", "134 43 1", "-8538 -8566 -196" );
make_brush( "_losfix_dynamic_bridge_floor2", "-134 -43 -1", "134 43 1", "-8270 -8566 -196" );
make_brush( "_losfix_van", "-1 -108 -14", "1 108 14", "-7071 -5218 -30" );
make_clip( "_ladder_quickstairwell_clip", "SI Players", 1, "-8 -1 0", "8 1 28", "-6394 -7264.7 89", "0 -20 0" );
make_clip( "_ladder_starttriplebig_clip", "Everyone", 1, "-48 -16 -22", "66 16 1", "-11632 -8168 -231" );
make_ladder( "_ladder_endtrainbox_cloned_endchainlink", "-6592 -5341 5.2833", "-1659 -382 -6" );
make_ladder( "_ladder_quickstairwell_cloned_wrongturn", "-6592 -5313 14.2833", "218 -1949 -2" );
make_ladder( "_ladder_starttriplebig_cloned_startcoolingtanks", "-11639 -8492 -350", "84 246 0" );
make_ladder( "_ladder_warewinright_cloned_wrongturn", "-6592 -5313 14.2833", "0 -687 0" );

con_comment( "MOVER:\tLOS dynamic fixes parented to move with bridge." );

EntFire( g_UpdateName + "_losfix_dynamic_bridge1", "SetParent", "platform_01" );
EntFire( g_UpdateName + "_losfix_dynamic_bridge2", "SetParent", "platform_02" );
EntFire( g_UpdateName + "_losfix_dynamic_bridge_floor1", "SetParent", "platform_01" );
EntFire( g_UpdateName + "_losfix_dynamic_bridge_floor2", "SetParent", "platform_02" );

con_comment( "PROP:\tBarrels at end of sewers moved to reduce stuck-warp obligation." );

Entities.FindByClassnameNearest( "prop_physics", Vector( -7055, -6681, -205 ), 8 ).SetOrigin( Vector( -7055, -6731, -208 ) );
Entities.FindByClassnameNearest( "prop_physics", Vector( -7016, -6697, -206 ), 8 ).SetOrigin( Vector( -7016, -6747, -209 ) );
Entities.FindByClassnameNearest( "prop_physics", Vector( -7000, -6674, -205 ), 8 ).SetOrigin( Vector( -7000, -6724, -208 ) );
}
49 changes: 49 additions & 0 deletions scripts/vscripts/anv_mapfixes/c10m3_ranchhouse.nut
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,53 @@ if ( g_BaseMode == "versus" )

make_clip( "_cliprework_smokertrolling", "Survivors", 1, "-207 -21 0", "219 8 259", "-11857 -5323 85" );

}

if ( HasPlayerControlledZombies() )
{
kill_funcinfclip( 889.728 ); // Delete HERSCH SHIPPING clip
kill_funcinfclip( 421.059 ); // Delete clip above rooftop ramp
make_brush( "_losfix_ambulance1", "-1 -100 -7", "1 100 7", "-5924 -1034 -39" );
make_brush( "_losfix_ambulance2", "-1 -40 -8", "1 40 8", "-5965 -1134 -38" );
make_brush( "_losfix_bus1", "-1 -100 -14", "1 100 14", "-9815 -3582 -43" );
make_brush( "_losfix_bus2", "-1 -50 -14", "1 50 14", "-9782 -3864 -43" );
make_brush( "_losfix_bus3", "-50 -1 -14", "41 1 14", "-9857 -3507 -43" );
make_brush( "_losfix_van", "-60 -1 -9", "100 1 9", "-9414 -2952 -42" );
make_brush( "_losfix_watertank", "-2 -132 -6", "2 132 6", "-10456 -6456 -58" );
make_clip( "_solidify_permstuck01", "SI Players", 1, "-17 -17 0", "17 17 512", "-6606 -722 -58" );
make_clip( "_solidify_permstuck02", "SI Players", 1, "-17 -17 0", "17 17 512", "-6243 -697 -48" );
make_clip( "_solidify_permstuck03", "SI Players", 1, "-17 -17 0", "17 17 512", "-6067 -585 -31" );
make_clip( "_solidify_permstuck04", "SI Players", 1, "-17 -17 0", "17 17 512", "-6001 -266 -30" );
make_clip( "_solidify_permstuck05", "SI Players", 1, "-17 -17 0", "17 17 512", "-5620.3 -301.3 -50.5" );
make_clip( "_solidify_permstuck06", "SI Players", 1, "-17 -17 0", "17 17 512", "-9674 -1131 -10" );
make_clip( "_solidify_permstuck07", "SI Players", 1, "-17 -17 0", "17 17 512", "-8918 -860 -42" );
make_clip( "_solidify_permstuck08", "SI Players", 1, "-17 -17 0", "17 17 512", "-8570 -994 -66" );
make_clip( "_meticulous_funcinfclip01", "SI Players", 1, "-508 -290 -72", "1134 46 402", "-9348 -7694 584" );
make_ladder( "_ladder_brokenwallL_cloned_graveshort", "-4808 706 6", "2295 383 193" );
make_ladder( "_ladder_brokenwallM_cloned_graveshort", "-4808 706 6", "2327 383 193" );
make_ladder( "_ladder_brokenwallR_cloned_graveshort", "-4808 706 6", "2359 383 193" );
make_ladder( "_ladder_churchcampperimeter_cloned_churchtallninety", "-4024 -520.5 53.5", "-321 2305 119", "0 30 0", "0.5 -0.86 0" );
make_ladder( "_ladder_churchfarperimeter_cloned_churchsandbags", "-2791.83 600.5 236.126", "-296 504 8" );
make_ladder( "_ladder_concretebags_cloned_acunitcorner", "-11120 -7697 0", "-1639 229 0" );
make_ladder( "_ladder_mountaincrawl_cloned_fatcliffladder", "-7808 -2686 110.235", "-14382.5 -10536.8 1636", "0 -131.9 34", "0.81 -0.58 0" );
make_ladder( "_ladder_ramptohersch_cloned_lightsignalfence", "-11841 -5314.5 13", "2967 -2079 670" );
make_ladder( "_ladder_shedelectricbox_cloned_hellcade", "-4543.5 -1344 -14", "-10635 1854 19", "0 90 0", "0 1 0" );
make_ladder( "_ladder_stationfencebackL_cloned_stationfencebackR", "-12819.5 -8032 12.5", "0 1328 0" );
make_ladder( "_ladder_stationfencebackM_cloned_stationfencebackR", "-12819.5 -8032 12.5", "0 629 0" );
make_ladder( "_ladder_stationfencefrontL_cloned_stationfencefrontR", "-12792.5 -6685.7598 11.5", "0 -618 0" );
make_ladder( "_ladder_trainsignalleftB_cloned_sandtowerbest", "-11178 -5312.5 54.5", "-351 -2020 -101" );
make_ladder( "_ladder_trainsignalleftT_cloned_sandtowerbest", "-11178 -5312.5 54.5", "-351 -2020 27" );
make_ladder( "_ladder_trainsignalrightB_cloned_sandtowerbest", "-11178 -5312.5 54.5", "-832 -2020 -101" );
make_ladder( "_ladder_trainsignalrightT_cloned_sandtowerbest", "-11178 -5312.5 54.5", "-832 -2020 27" );
make_prop( "dynamic", "_losblocker_rock", "models/props/cs_militia/militiarock03.mdl", "-5921 -453 19", "2 277 -120", "shadow_no" );
make_prop( "dynamic", "_solidify_tree01", "models/props_foliage/trees_cluster01.mdl", "-6608 -712 -84", "-3.50638 167.38 -6.41996", "shadow_no" );
make_prop( "dynamic", "_solidify_tree02", "models/props_foliage/trees_cluster01.mdl", "-6240 -704 -36", "0.0 332.0 0.0", "shadow_no" );
make_prop( "dynamic", "_solidify_tree03", "models/props_foliage/trees_cluster01.mdl", "-6064 -584 -84", "-1.16862 16.961 3.82575", "shadow_no" );
make_prop( "dynamic", "_solidify_tree04", "models/props_foliage/trees_cluster01.mdl", "-6000 -272 -84", "-1.16862 331.961 3.82575", "shadow_no" );
make_prop( "dynamic", "_solidify_tree05", "models/props_foliage/trees_cluster01.mdl", "-5622 -298 -84", "-1.16862 106.961 3.82575", "shadow_no" );
make_prop( "dynamic", "_solidify_tree06", "models/props_foliage/trees_cluster01.mdl", "-9678.08 -1120 11.46", "-15.8186 151.677 -1.38363", "shadow_no" );
make_prop( "dynamic", "_solidify_tree07", "models/props_foliage/trees_cluster01.mdl", "-8914.98 -852.481 -26.4875", "0 317 0", "shadow_no" );
make_prop( "dynamic", "_solidify_tree08", "models/props_foliage/trees_cluster01.mdl", "-8568 -984 -52", "1.17358 181.777 -6.60183", "shadow_no" );
//make_prop( "dynamic", "_solidify_tree09", "models/props_foliage/trees_cluster02.mdl", "-7168 -880 -91.8731", "-6.18811 26.8478 12.0217", "shadow_no" );
make_prop( "dynamic", "_solidify_tree10", "models/props_foliage/trees_cluster02.mdl", "-9664 -1400 -36.5395", "-15.8186 151.677 -1.38363", "shadow_no" );
}
Loading

0 comments on commit b6482e6

Please sign in to comment.