Advertisement
Guest User

mgs_config.lua

a guest
Nov 23rd, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.24 KB | None | 0 0
  1. /*****************
  2. * CONFIGURATIONS
  3. ******************/
  4.  
  5. if SERVER then
  6.     resource.AddWorkshop("331053907")
  7. end
  8.  
  9.  
  10. /*****************
  11. * ADDON CONFIG
  12. ******************/
  13. ----------------------------------
  14.     -- PLEASE SET BASE OF YOUR GAMEMODE ( 2.5 (2.5.0 or 2.5.1) or 2.4 (2.4.3))
  15.     MGS_GM_VERSION = 2.5
  16.     -- Draw distance
  17.     MGS_DISTANCE = 512
  18.     -- Tools which helps players break rocks.
  19.     MGS_MINING_TOOLS = {"mgs_pickaxe"}
  20.  
  21.     -- NEW -- Set 'true' to set new method of changing time in factory. Time will be set by ore's times which you will set in ore settings.
  22.     MGS_NEW_TIME = true
  23. ----------------------------------
  24. /*****************
  25. * ROCKS CONFIG
  26. ******************/
  27. ----------------------------------
  28.     -- Set Maximum number of ores which will be spawned.
  29.     MGS_CREATE_ORE = 5
  30.     -- Set rocks' health.
  31.     MGS_ROCK_HEALTH = 10
  32.     -- Respawning rocks time.
  33.     MGS_ROCK_REPLACE_TIMER = 10
  34.  
  35.     --Custom models for rocks.
  36.     MGS_ROCK_MODELS = {"models/props/cs_militia/militiarock05.mdl", "models/props/cs_militia/militiarock03.mdl"}
  37. ----------------------------------
  38. /*****************
  39. * ORES CONFIG
  40. ******************/
  41. ----------------------------------
  42.     -- Removing ore time which isn't used.
  43.     MGS_ORE_REMOVE_TIME = 60
  44.  
  45.     -- Custom models for ores
  46.     MGS_ORE_MODELS = {"models/props_junk/rock001a.mdl"}
  47.  
  48.     -- Ore types
  49.     -- Example: "Gold" - name for ore,
  50.     --          "Color(255,255,0)" -- color,
  51.     --          "10" - cost for one kg,
  52.     --          "math.Rand(7,15)" - random mass also you can use "15" or another integer value.
  53.     --    NEW   "0.5" - chance between 0 and 1. Less this number, more likely that ore will be spawned.
  54.     --    NEW   "20" - time for ore to be broken.
  55.  
  56.     MGS_ORE_TYPES = {
  57.         {"Ruby", Color(255,0,0), 3, math.Rand(7, 15), 0.2, 10},
  58.         {"Gold", Color(255,255,0), 10, math.Rand(5, 10), 0.5, 20},
  59.         {"Diamond", Color(100,100,255), 100, math.Rand(1, 5), 0.9, 50}
  60.     }
  61. ----------------------------------
  62. /*****************
  63. * FACTORY CONFIG
  64. ******************/
  65. ----------------------------------
  66.     -- Crushing time.
  67.     MGS_CRUSH_TIME = 10
  68.     -- Safe mode. If you sets 'false' it will spawn money as entity, else money would be add to player.
  69.     MGS_SAFEMODE = false
  70.     -- Enable crush effects.
  71.     MGS_CRUSH_EFFECT = true
  72. ----------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement