ReverendV92

Lua/Autorun/Server/sv_v92_download_maps.lua

Apr 8th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.33 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. if SERVER then
  4.  
  5.     maplist = {}
  6.  
  7.     -- GS
  8.     maplist["freespace_gs"] = "240753564"
  9.     maplist["emp_duststorm1_gs"] = "504222017"
  10.     maplist["gs_bootcamp_v2_pak"] = "240756205"
  11.     maplist["gs_bootcamp_v2r_pak"] = "240756205"
  12.     maplist["gs_bootcamp_v2w_pak"] = "240756205"
  13.     maplist["gs_coastbase_b3"] = "504263097"
  14.     maplist["gs_forest"] = "504252715"
  15.     maplist["gs_forest_night"] = "504252856"
  16.     maplist["gs_forest_v2"] = "514574799"
  17.     maplist["gs_forest_v2_rain"] = "514579844"
  18.     maplist["gs_forest_v2_night"] = "514581246"
  19.     maplist["gs_forest_v2_snow"] = "255768908"
  20.     maplist["gsa_mainbase_v3"] = "504222894"
  21.     maplist["gsa_mainbase_v3_night"] = "504222964"
  22.  
  23.     -- V92
  24.  
  25.     maplist["cityruins"] = "151539013"
  26.     maplist["cityruins2"] = "266180263"
  27.     maplist["ec_devils_nest_v1_02"] = "241922614"
  28.     maplist["dm_ricketystructure"] = "492568255"
  29.     maplist["dm_slanska"] = "446165164"
  30.     maplist["fs_basement-dweller"] = "105497660"
  31.     maplist["fs_brain-archives"] = "135616832"
  32.     maplist["fs_bridge"] = "474414964"
  33.     maplist["fs_cityx"] = "517232476"
  34.     maplist["fs_gs-teamspeak"] = "133545651"
  35.     maplist["fs_luckyhouse"] = "161584931"
  36.     maplist["fs_toysoldiers"] = "171540690"
  37.     maplist["fs_warehouse"] = "482291622"
  38.     maplist["fs_western"] = "215552742"
  39.     maplist["fun_shootingpractice"] = "483873722"
  40.     maplist["garrison"] = "480119105"
  41.     maplist["gm10_floodinvasion"] = "105496320"
  42.     maplist["gm_aether_aerodromes"] = "177059754"
  43.     maplist["gm_apehouse_winter_day"] = "110825455"
  44.     maplist["gm_apehouse_winter_day"] = "110823762"
  45.     maplist["gm_apehouse_winter_night"] = "110825455"
  46.     maplist["gm_apehouse_winter_night"] = "110823762"
  47.     maplist["gm_apehouse_winter_sunset"] = "110825455"
  48.     maplist["gm_apehouse_winter_sunset"] = "110823762"
  49.     maplist["gm_arid_mesa"] = "144936535"
  50.     maplist["gm_arid_mesa_night"] = "148147085"
  51.     maplist["gm_arid_valley_v2"] = "510346779"
  52.     maplist["gm_arid_valley_v2_night"] = "510347812"
  53.     maplist["gm_bar"] = "141152541"
  54.     maplist["gm_bigcity"] = "105982362"
  55.     maplist["gm_coolpit"] = "482373199"
  56.     maplist["gm_coolsnow"] = "200098715"
  57.     maplist["gm_construct_in_flatgrass"] = "397861545"
  58.     maplist["gm_cvn78"] = "107210344"
  59.    
  60.     maplist["srp_darkdolina_v3"] = "174264310"                      -- Part 1
  61.     maplist["srp_darkdolina_v3"] = "174265222"                      -- Part 2
  62.     maplist["srp_darkdolina_v3"] = "165772389"                      -- Catch-22
  63.     maplist["srp_darkdolina_v3"] = "132907756"                      -- Catch-22
  64.    
  65.     maplist["gm_bigisland"] = "169600867"
  66.     maplist["gm_dddustbowl2"] = "108093685"
  67.     maplist["gm_dddustbowl2night"] = "108101584"
  68.     maplist["gm_floatingworlds"] = "104485502"
  69.     maplist["gm_floatingworlds_ii"] = "104486484"
  70.     maplist["gm_floatingworlds_ii_night"] = "104487702"
  71.     maplist["gm_floatingworlds_3"] = "122421739"
  72.     maplist["gm_fork"] = "326332456"
  73.     maplist["gm_flatgrass2012"] = "107348679"
  74.     maplist["gm_helicarrier"] = "287575864"
  75.     maplist["gm_hugehill"] = "239008099"
  76.     maplist["gm_lostcoast"] = "337303052"
  77.     maplist["gm_mobenix_v3_final"] = "140618773"
  78.     maplist["gm_mountainlake2"] = "349856780"
  79.     maplist["gm_mountainside"] = "149823609"
  80.     maplist["gm_ninfield_v2exp"] = "505151457"
  81.    
  82.     maplist["gm_nuclear_winter_2"] = "278185854"                    -- Map
  83.     maplist["gm_nuclear_winter_2"] = "165772389"                    -- Catch-22
  84.     maplist["gm_nuclear_winter_2"] = "132907756"                    -- Catch-22
  85.     maplist["gm_nuclear_winter_2"] = "174264310"                    -- Catch-22
  86.     maplist["gm_nuclear_winter_2"] = "174265222"                    -- Catch-22
  87.  
  88.     maplist["gm_nuclear_winter_3"] = "278205026"                    -- Map
  89.     maplist["gm_nuclear_winter_3"] = "165772389"                    -- Catch-22
  90.     maplist["gm_nuclear_winter_3"] = "132907756"                    -- Catch-22
  91.     maplist["gm_nuclear_winter_3"] = "174264310"                    -- Catch-22
  92.     maplist["gm_nuclear_winter_3"] = "174265222"                    -- Catch-22
  93.  
  94.     maplist["gm_nuclear_winter_v2"] = "278111458"                   -- Map
  95.     maplist["gm_nuclear_winter_v2"] = "165772389"                   -- Catch-22
  96.     maplist["gm_nuclear_winter_v2"] = "132907756"                   -- Catch-22
  97.     maplist["gm_nuclear_winter_v2"] = "174264310"                   -- Catch-22
  98.     maplist["gm_nuclear_winter_v2"] = "174265222"                   -- Catch-22
  99.  
  100.     maplist["gm_nuclear_winter_resurgence"] = "288843031"           -- Map
  101.     maplist["gm_nuclear_winter_resurgence"] = "165772389"           -- Catch-22
  102.     maplist["gm_nuclear_winter_resurgence"] = "132907756"           -- Catch-22
  103.     maplist["gm_nuclear_winter_resurgence"] = "174265222"           -- Catch-22
  104.     maplist["gm_nuclear_winter_resurgence"] = "174264310"           -- Catch-22
  105.    
  106.     --  Empires Maps
  107.    
  108.     maplist["gm_emp_arid"] = "237704514"
  109.     maplist["gm_emp_canyon"] = "237704514"
  110.     maplist["gm_emp_mvalley"] = "237704514"
  111.     maplist["gm_emp_palmbay"] = "237704514"
  112.     maplist["gm_emp_chain"] = "613046581"
  113.    
  114.     maplist["gm_open_glades"] = "504723505"
  115.     maplist["gm_reactionsew"] = "112108040"
  116.     maplist["gm_supersizeroom_v2"] = "104793138"
  117.     maplist["gm_skylife_v1"] = "107992135"
  118.     maplist["gm_sunnyisles"] = "107347296"
  119.     maplist["gm_trainset"] = "248213731"
  120.     maplist["gm_ubasev4"] = "216416746"
  121.     maplist["gm_valley"] = "104483504"
  122.     maplist["gm_wave_v2"] = "492521480"
  123.     maplist["gm_wave_v3"] = "492523436"
  124.     maplist["gm_wireconstruct_bna"] = "483850706"
  125.     maplist["hamletv1"] = "504399277"
  126.     maplist["md_ironsky_a6"] = "188652909"
  127.     maplist["pk_bigcity"] = "139277887"
  128.     maplist["raid_martyrdom"] = "133541234"
  129.     maplist["raid_martyrdom_moonlight"] = "518664244"
  130.     maplist["raid_martyrdom_night"] = "518665480"
  131.     maplist["raid_predator"] = "133540980"
  132.     maplist["raid_predator_moonlight"] = "134857165"
  133.     maplist["raid_predator_night"] = "134858294"
  134.     maplist["rp_abandoned"] = "493060157"
  135.     maplist["rp_apocalypse"] = "104522041"
  136.     maplist["rp_artificialisland"] = "492528743"
  137.     maplist["rp_cc_caves_01"] = "242386747"
  138.     maplist["rp_cc_thecanals_2"] = "268370407"
  139.     maplist["rp_c18_v1"] = "132931674"
  140.     maplist["rp_c18_v2"] = "132937160"
  141.     maplist["rp_city8_2"] = "132940295"
  142.     maplist["rp_city8_2_hl2"] = "377981906"
  143.     maplist["rp_city8_canals"] = "132911524"
  144.     maplist["rp_city8_outlandstest"] = "132945275"
  145.     maplist["rp_city8_district1"] = "132919876"
  146.     maplist["rp_city8_district9"] = "132916875"
  147.     maplist["rp_cityx_013"] = "171577404"
  148.     maplist["rp_coast_03_fix"] = "132960387"
  149.     maplist["rp_coast_03_v5"] = "249349705"
  150.     maplist["rp_coast05"] = "132962296"
  151.     maplist["rp_coast_09"] = "132963389"
  152.     maplist["rp_cscdesert_v2-1"] = "110345906"
  153.     maplist["rp_cscdesert_v2-1_propfix"] = "175065893"
  154.     maplist["rp_cscdesert_v2-1_night_newsb"] = "129917725"
  155.     maplist["rp_destroyedcity_final"] = "143166143"
  156.     maplist["rp_eastcoast_v3b"] = "656710823"
  157.     maplist["rp_flatgrass"] = "144831769"
  158.     maplist["rp_fs_coast_07_003_pak"] = "144137567"
  159.     maplist["rp_ineu_apocalypse"] = "278571728"
  160.     maplist["rp_ineu_pass_v1e"] = "143547520"
  161.     maplist["rp_ineu_valley_v1a"] = "129218683"
  162.     maplist["rp_ineu_valley2_v1a"] = "232486601"
  163.     maplist["rp_lp_fork"] = "510244989"
  164.     maplist["rp_necro_forest_a1"] = "128002457"
  165.     maplist["rp_necro_urban_v3b"] = "178935552"
  166.     maplist["rp_outercanals"] = "119420070"
  167.     maplist["rp_outercanals_winter"] = "107641602"
  168.     maplist["rp_pripyat_hl2"] = "507561128"
  169.     maplist["rp_salvation_night_redemption"] = "133030882"
  170.     maplist["rp_salvation_2_stalker"] = "132908407"
  171.     maplist["rp_salvation_2_stalker_snow"] = "132901080"
  172.     maplist["rp_stalker"] = "132907756"                             -- Map
  173.     maplist["rp_stalker"] = "165772389"                             -- Catch-22
  174.     maplist["rp_stalker"] = "174264310"                             -- Catch-22
  175.     maplist["rp_stalker"] = "174265222"                             -- Catch-22
  176.     maplist["rp_skyhigh"] = "270014545"
  177.     maplist["rp_tnb_coast"] = "303123093"  
  178.     maplist["rp_whiteforest_radiostation"] = "410382198"
  179.     maplist["steamclub_v1"] = "482894003"
  180.     maplist["timberland_v3"] = "104522963"
  181.     maplist["tga_ld_buildoff_2012"] = "113306531"
  182.     maplist["tp2_sky_03"] = "134610878"
  183.     maplist["trp_coastal-sub-facility_v2"] = "112661085"
  184.     maplist["ttt_bb_teenroom_b2"] = "141103402"
  185.     maplist["ttt_shattered_island"] = "194401914"
  186.     maplist["valley"] = "142782327"
  187.     maplist["zs_stormier_v1"] = "157194940"
  188.     maplist["zw_coast_v3"] = "366726147"
  189.  
  190.     local map = game.GetMap() -- Gets the current map name
  191.     local workshopid = maplist[map]
  192.     -- Finds the workshop ID for the current map name from the table above
  193.  
  194.     if( workshopid != nil )then
  195.         --If the map is in the table above, add it through workshop
  196.         print( "[WORKSHOP] Setting up map download: " ..map.. " has workshop ID of: " ..workshopid )
  197.         resource.AddWorkshop( workshopid )
  198.     else
  199.         --If not, then hope the server has FastDL or the client has the map
  200.         print( "[WORKSHOP] Not available for current map." )
  201.     end
  202.    
  203. end
Add Comment
Please, Sign In to add comment