Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
1 2 3 4 5 … 18 Next »
Release Useful constant values
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Release Useful constant values
25-08-2026, 12:43 PM,
#1
Caprica Offline
Valued donator and member
****
Posts: 76
Threads: 24
Joined: Aug 2020
Useful constant values
Here are some lua tables for copying and pasting that may be useful to you.



PLANET_MODELS = {
["Hiigara"] = "models/hiigara/hiigara.mdl",
["Desert"] = "models/planets/chinook.mdl",
["Lava"] = "models/sb_forlorn/vimana.mdl",
["Shakuras"] = "models/sb_forlorn/bluemars.mdl",
["Moon"] = "models/zup/planets/moon_001.mdl",
["Earth"] = "models/kobol/kobol.mdl"
}


PLANET_SIZES = {
["Hiigara"] = 10030,
["Desert"] = 8224,
["Lava"] = 6244,
["Shakuras"] = 10320,
["Moon"] = 3100,
["Earth"] = 8560,
}

PLANET_LOCATIONS = {
["Hiigara"] = Vector(7168, 8704, -6064),
["Desert"] = Vector(10624, -10668, -9384),
["Lava"] = Vector(-9792, -80, -4688),
["Shakuras"] = Vector(-7552, -7056, 6832),
["Moon"] = Vector(-4480, 13792, 9920),
["Earth"] = Vector(0, 8032, 8064),
}


constants.GALAXY_BOUNDS = {

["Milky Way"] = { Vector(-15820.052734, 42.512852, 32.031250) , Vector(15823.839844, 15824.048828, 15839.968750) },
["Pegasus"] = { Vector(-15822.894531, -15771.076172, 32.031250) , Vector(15823.913086, -167.429413, 15839.968750) },
["Universe"] = { Vector(-15734.663086, -15720.826172, -14015.968750) , Vector(15824.086914,15824.072266,-0.031250 ) },

}


GALAXY_SIZES = {

["Milky Way"] = GALAXY_BOUNDS["Milky Way"][2] - GALAXY_BOUNDS["Milky Way"][1],
["Pegasus"] = GALAXY_BOUNDS["Pegasus"][2] - GALAXY_BOUNDS["Pegasus"][1],
["Universe"] = GALAXY_BOUNDS["Universe"][2] - GALAXY_BOUNDS["Universe"][1],

}

SHIP_TYPE_NAMES = {
["ship_core"] = "Ship",
["st_shuttle_type6"] = "Type 6 Shuttle",
["st_shuttle_type9"] = "Type 9 Shuttle",
["st_shuttle_type11"] = "Type 11 Shuttle",
["atlantis_puddle_jumper"] = "Puddle Jumper",
["puddle_jumper"] = "Puddle Jumper",
["sci_fi_shuttle"] = "Shuttle",
["sg_vehicle_gate_glider"] = "Gate Glider",
["sg_vehicle_glider"] = "Glider",
["sg_vehicle_teltac"] = "TelTac",
["sg_vehicle_shuttle"] = "Destiny Shuttle",
["box_cube_tactical"] = "Tactical Borg Cube",
["box_cube"] = "Box Cube",
["box_sphere"] = "Box Sphere"
}

WEAPON_SPEEDS_TORPEDOS = {

["Biomolecular"] = 3500,
["Chronitron"] = 3000,
["Photon"] = 3500,
["Photon (TOS)"] = 3500,
["Photon (TMP)"] = 3500,
["Plasma"] = 1000,
["Quantum"] = 2500,
["Transphasic"] = 4000,
["Transphasic Chronitron"] = 3500,
["Tricobalt"] = 1000

}

SMALL_ASTEROIDS = {

Vector(-4893.475098,-8706.698242,-5829.842285),
Vector(-3078.478516,-4429.211914,-4577.475586),
Vector(-901.760742,1270.473877,-4936.942383),
Vector(11275.528320,10412.892578,7512.837891),
Vector(11441.208984,4523.573730,7783.929199),
Vector(12953.072266,12334.515625,5988.247559),
Vector(12851.844727,8818.186523,7322.199707),
Vector(9852.474609,8320.409180,7630.070313),
Vector(10244.836914,8693.919922,6217.937500),
Vector(10266.384766,6293.636719,7018.546387),
Vector(11473.662109,7088.573730,6662.829590),
Vector(12978.364258,7336.712402,6691.908203),
Vector(12965.692383,6056.286621,6889.985840),
Vector(14303.525391,5836.482422,7696.038086),
Vector(13806.735352,4366.573242,5103.553223),
Vector(11769.862305,2954.001465,5269.969238),
Vector(11682.141602,1267.350952,7595.317383),
Vector(13171.077148,3005.401123,7238.441895),
Vector(14137.685547,1705.514893,7664.321777),
Vector(-12454.196289,15193.941406,5739.574219),
Vector(-12735.449219,13719.534180,5054.560547),
Vector(-14646.883789,14233.960938,6340.086914),
Vector(-13809.067383,11993.784180,5480.808594),
Vector(-14531.768555,10140.322266,4410.569336),
Vector(-14269.203125,8128.708008,6048.006836),
Vector(-12535.284180,7295.908691,5011.748535),
Vector(-11918.349609,8457.932617,5065.781738),
Vector(-11324.933594,8577.904297,5983.849121),
Vector(-12567.875000,5449.369141,5400.960449),
Vector(-12625.921875,3648.587891,5725.894043),
Vector(-13890.981445,4033.645996,4410.836426),
Vector(-14658.180664,3972.528320,5162.541504),
Vector(-14990.374023,1955.886475,5638.643066),
Vector(-13592.718750,2687.042969,3575.142334),
Vector(13010.075195,-13505.045898,11971.145508),
Vector(10771.949219,-13469.437500,8869.811523),
Vector(12099.030273,-10611.516602,7168.553223),
Vector(10189.707031,-12037.592773,5891.839844),
Vector(8855.337891,-11971.681641,7310.809082),
Vector(6223.385742,-12969.037109,7768.616211),
Vector(5201.816895,-14172.000977,8454.920898),
Vector(5675.821289,-9218.089844,7310.842285),
Vector(5597.736328,-6863.802246,6782.231445),
Vector(4716.123535,-1039.328857,7605.331543),
Vector(4833.456055,-2350.011719,8717.138672),
Vector(8726.083008,-1658.175415,11085.191406),
Vector(10419.687500,-3685.637939,9572.759766),
Vector(11371.421875,-5771.729980,10344.173828),
Vector(10929.984375,-8467.875000,10408.230469),
Vector(13444.790039,-8804.123047,11302.495117),
Vector(9989.920898,-9474.977539,12175.196289),
Vector(-2978.097900,2598.452637,-6121.896973),
Vector(-2978.097900,2598.452637,-6121.896973),
Vector(-4861.406250,2646.728516,-4788.158203),
Vector(-4861.406250,2646.728516,-4788.158203),
Vector(-4219.568848,838.740356,-4980.515137),
Vector(-4219.568848,838.740356,-4980.515137),
Vector(-1471.609985,-824.209534,-4805.875977),
Vector(-1471.609985,-824.209534,-4805.875977),
Vector(-870.850342,-810.080017,-6334.704102),
Vector(-870.850342,-810.080017,-6334.704102),
Vector(1024.270752,-2557.475098,-5128.838867),
Vector(1024.270752,-2557.475098,-5128.838867),
Vector(-972.745911,-4589.486328,-5571.042969),
Vector(-972.745911,-4589.486328,-5571.042969),
Vector(-2545.524414,-2615.715820,-5310.518555),
Vector(-2545.524414,-2615.715820,-5310.518555),
Vector(-4523.518555,-5942.263672,-6212.656250),
Vector(-4523.518555,-5942.263672,-6212.656250),
Vector(-1414.741333,-6295.604004,-7091.087891),
Vector(-1414.741333,-6295.604004,-7091.087891),
Vector(-3630.353760,-7029.224609,-7723.216309),
Vector(-3630.353760,-7029.224609,-7723.216309),
Vector(-6914.794434,-7613.146973,-6211.839844),
Vector(-6914.794434,-7613.146973,-6211.839844)

}

LARGE_ASTEROIDS = {

Vector(-844.677368,1323.252686,-4821.671387),
Vector(-3060.234863,-4650.157227,-4563.606445),
Vector(-4893.448242,-8784.168945,-5869.309082),
Vector(-14022.283203,5725.795410,6139.930176),
Vector(-13024.235352,9681.091797,4317.079102),
Vector(-12245.401367,10824.199219,5869.507324),
Vector(12853.097656,-4926.916504,6112.025391),
Vector(6326.254883,-2311.179688,8263.719727),
Vector(7516.903809,-13955.066406,9258.272461)

}


Find
Reply
25-08-2026, 05:10 PM,
#2
ST2005 Offline
Newbie
*
Posts: 9
Threads: 4
Joined: Sep 2022
RE: Useful constant values
How do you define large asteroids? Are those asteroids that are simply larger than certain radius, or specifically asteroids with distinct hollow cavities?
Find
Reply
25-08-2026, 06:31 PM,
#3
Caprica Offline
Valued donator and member
****
Posts: 76
Threads: 24
Joined: Aug 2020
RE: Useful constant values
The large asteroids have a maximum radius of around 500, but they're the ones on the map that are typically hollow. Small ones have a radius of around 200
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.