diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-16 16:44:39 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-16 16:44:39 -0400 |
| commit | b16a5f74fc68b34c42c4c201a3f3e1030928bc81 (patch) | |
| tree | f021d74d487a06318f9b0561f0aa1263f8b4e4f2 /gamemode/init.lua | |
| parent | 9feed739974af39dced00e926214751a843dfb08 (diff) | |
| download | gmstranded-b16a5f74fc68b34c42c4c201a3f3e1030928bc81.tar.gz gmstranded-b16a5f74fc68b34c42c4c201a3f3e1030928bc81.tar.bz2 gmstranded-b16a5f74fc68b34c42c4c201a3f3e1030928bc81.zip | |
Moved all tree and barrow spawns into their own filestructure
Diffstat (limited to 'gamemode/init.lua')
| -rw-r--r-- | gamemode/init.lua | 69 |
1 files changed, 5 insertions, 64 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua index cc06bf4..57c2832 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -42,70 +42,11 @@ GM.NextLoaded = 0 GM.AntlionBarrowSpawns = {} --GM.AntlionBarrowSpawns[ "gm_construct" ] = { Vector( -4321.8149, -2551.3449, 257.5130 ) } -print("Loading spawns for gm_construct") -GM.AntlionBarrowSpawns["gm_construct"] = loadBarrows("gm_construct") ---GM.AntlionBarrowSpawns[ "gms_rollinghills" ] = { Vector( 3131.2876, -980.5972, 519.5605 ), Vector( -4225.0200, 6009.3516, 513.1411 ) } -GM.AntlionBarrowSpawns["gms_rollinghills"] = loadBarrows("gms_rollinghills") -GM.AntlionBarrowSpawns[ "gms_rollinghills_daynight" ] = GM.AntlionBarrowSpawns[ "gms_rollinghills" ] -GM.AntlionBarrowSpawns[ "gms_rollinghills_daynight_b1" ] = GM.AntlionBarrowSpawns[ "gms_rollinghills" ] - -GM.AntlionBarrowSpawns[ "gms_nowhere2" ] = { Vector( 3918.7753, 5111.8149, 7.5218 ), Vector( -2061.3061, 4842.8325, 7.6148 ) } -GM.AntlionBarrowSpawns[ "gms_minisurvival_v2" ] = { Vector( -2818.7075, 3132.7507, -529.3529 ), Vector( -1423.5445, -1801.8461, -521.4026 ) } - -GM.AntlionBarrowSpawns[ "gms_coastal_outlands" ] = { - -Vector( 5682.056152, -504.173035, 181.781555 ), -Vector( 5960.534180, 10054.454102, 83.857697 ), -Vector( 2401.916504, 431.268372, -11125.555664 ), -Vector( 3803.869141, 7341.371094, -11190.447266 ), -Vector( 2804.810303, 12146.677734, -9125.259766 ), - -} - -GM.TreeSpawns = {} - -GM.TreeSpawns[ "gms_coastal_outlands" ] = { - -// The third coordinate is the height coordinate -// Always subtract 70 to the height coord if it is positive so that the tree will be touching the floor - -Vector( 1462.160522, -3664.370361, -10941.564453 ), -Vector( 3718.633545, -1710.644409, -11269.974609 ), -Vector( 3159.402588, 145.593597, -11045.797852 ), -Vector( 2519.847168, -547.534180, -11161.646484 ), -Vector( 4932.186035, 4456.111328, -11258.104492 ), -Vector( 4781.265137, 6047.670410, -11249.711914 ), -Vector( 3673.399170, 5922.402832, -11243.965820 ), -Vector( 3063.780273, 6409.881348, -11238.132813 ), -Vector( 5274.083496, 8890.347656, -10530.000000 ), -Vector( 5899.765137, 6888.799316, -10543.629883 ), -Vector( 6781.679199, 6864.066895, -10404.078125 ), -Vector( 7762.570313, 8027.228516, -9794.528320 ), -Vector( 3582.199219, 8849.200195, -10587.720703 ), -Vector( 2345.549072, 9190.130859, -9654.171875 ), -Vector( -184.908630, 9758.339844, -9654.647461 ), -Vector( -1548.173218, 10890.804688, -9306.844727 ), -Vector( -791.436951, 11616.236328, -9311.025391 ), -Vector( -1412.835571, 12691.185547, -9611.835938 ), -Vector( 504.700775, 13039.500977, -9156.863281 ), -Vector( 1297.606201, 12465.360352, -9147.304688 ), -Vector( 2329.148193, 11747.046875, -9157.968750 ), -Vector( 3458.504883, 9959.944336, -9299.968750 ), -Vector( 5360.672363, 4706.935547, 344.907623 ), -Vector( 4492.113281, 4696.718750, 319.830444 ), -Vector( 4619.547852, 5449.032715, 407.463806 ), -Vector( 5092.520508, 5595.101563, 535.216309 ), -Vector( 5451.174805, 4665.181152, 354.842255 ), -Vector( 4171.684570, 2509.103271, 370.570892 ), -Vector( 5031.233398, 1786.687256, 311.406921 ), -Vector( 4515.268555, 136.138535, 327.624390 ), -Vector( 2986.565674, -3083.914551, 866.749268 ), -Vector( 3086.577148, -7007.732910, 1510.264038 ), -Vector( 3577.333252, -9913.345703, 1559.749146 ), -Vector( 2075.320313, 9463.977539, 152.691238 ), -Vector( 7145.083008, 8708.809570, -9852.012695 ) - -} +local loadmaps = {"gm_construct","gms_rollinghills","gms_rollinghills_daynight","ggms_rollinghills_daynight_b1","gms_nowhere2","gms_minisurvival_v2","gms_coastal_outlands"} +for k,v in pairs(loadmaps) do + GM.AntlionBarrowSpawns[v] = loadBarrows(v) + GM.TreeSpawns[v] = loadTrees(v) +end util.AddNetworkString('givePlayerWeapon') util.AddNetworkString('givePlayerResource') |
