Advertisement
GrimWim

GrimWim's Garry's Mod Modifications FULL (2016)

Feb 15th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.82 KB | None | 0 0
  1. GrimWim's Expertese Garrys Mod SWEP Mod :
  2. ASTEBINnew pastetrends
  3.  
  4. GrimWim
  5. FREE
  6. Pastebin PRO Accounts February SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account!
  7.  
  8. Garry's Mod SWEP
  9. SORISO FEB 13TH, 2016 51 NEVER
  10.  
  11. rawdownloadreport Game Maker 9.34 KB
  12. -- Variables that are used on both client and server
  13. SWEP.Gun = ("sorisos_pistol") -- must be the name of your swep but NO CAPITALS!
  14. SWEP.Category = "M1911" --Category where you will find your weapons
  15. SWEP.Author = "Soriso"
  16. SWEP.Contact = "matteusmatu@gmail.com"
  17. SWEP.Purpose = "Killing, of course."
  18. SWEP.Instructions = "Left click to shoot, Right click to aim."
  19. SWEP.PrintName = "M1911" -- Weapon name (Shown on HUD)
  20. SWEP.Slot = 1 -- Slot in the weapon selection menu
  21. SWEP.SlotPos = 1 -- Position in the slot
  22. SWEP.DrawAmmo = true -- Should draw the default HL2 ammo counter
  23. SWEP.DrawWeaponInfoBox = false -- Should draw the weapon info box
  24. SWEP.BounceWeaponIcon = false -- Should the weapon icon bounce?
  25. SWEP.DrawCrosshair = true -- set false if you want no crosshair
  26. SWEP.Weight = 15 -- rank relative ot other weapons. bigger is better
  27. SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
  28. SWEP.AutoSwitchFrom = false -- Auto switch from if you pick up a better weapon
  29. SWEP.HoldType = "pistol" -- how others view you carrying the weapon
  30. -- normal melee melee2 fist knife smg ar2 pistol rpg physgun grenade shotgun crossbow slam passive
  31. -- you're mostly going to use ar2, smg, shotgun or pistol. rpg makes for good sniper rifles
  32.  
  33. SWEP.ViewModelFOV = 70
  34. SWEP.ViewModelFlip = true
  35. SWEP.ViewModel = "models/weapons/v_pist_sori.mdl" -- Weapon view model
  36. SWEP.WorldModel = "models/weapons/w_Pist_p228.mdl" -- Weapon world model
  37. SWEP.ShowWorldModel = true
  38. SWEP.Base = "sorisos_gun_base" --the Base this weapon will work on. PLEASE RENAME THE BASE!
  39. SWEP.Spawnable = true
  40. SWEP.AdminSpawnable = true
  41. SWEP.FiresUnderwater = true
  42.  
  43. SWEP.Primary.Sound = Sound("sorisos_pistol") -- Script that calls the primary fire sound
  44. SWEP.Primary.SilencedSound = Sound("") -- Sound if the weapon is silenced
  45. SWEP.Primary.RPM = 500 -- This is in Rounds Per Minute
  46. SWEP.Primary.ClipSize = 7 -- Size of a clip
  47. SWEP.Primary.DefaultClip = 7 -- Bullets you start with
  48. SWEP.Primary.KickUp = 0.4 -- Maximum up recoil (rise)
  49. SWEP.Primary.KickDown = 0.4 -- Maximum down recoil (skeet)
  50. SWEP.Primary.KickHorizontal = 0.3 -- Maximum up recoil (stock)
  51. SWEP.Primary.Automatic = false -- Automatic = true; Semi Auto = false
  52. SWEP.Primary.Ammo = "pistol" -- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun
  53. -- Pistol, buckshot, and slam always ricochet.
  54. --Use AirboatGun for a light metal peircing shotgun pellets
  55. SWEP.SelectiveFire = true
  56. SWEP.CanBeSilenced = false
  57.  
  58. SWEP.Secondary.IronFOV = 55 -- How much you 'zoom' in. Less is more!
  59.  
  60. SWEP.data = {} --The starting firemode
  61. SWEP.data.ironsights = 1
  62.  
  63. SWEP.Primary.Damage = 20 -- Base damage per bullet
  64. SWEP.Primary.Spread = .02 -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
  65. SWEP.Primary.IronAccuracy = .001 -- Ironsight accuracy, should be the same for shotguns
  66.  
  67. -- Enter iron sight info and bone mod info below
  68. SWEP.IronSightsPos = Vector(2.4, 0, 1.24)
  69. SWEP.IronSightsAng = Vector(0.212, -0.083, 1)
  70. SWEP.RunSightsPos = Vector(-5.661, 0, -5.738)
  71. SWEP.RunSightsAng = Vector(24.405, 0, 0)
  72.  
  73. SWEP.VElements = {
  74. ["part1"] = { type = "Model", model = "models/props_junk/terracotta01.mdl", bone = "Slide", rel = "", pos = Vector(1.72, 15.996, -5.205), angle = Angle(-90.159, 0.096, 0.004), size = Vector(0.061, 0.061, 0.061), color = Color(255, 255, 255, 255), surpresslightning = false, material = "metal6", skin = 0, bodygroup = {} },
  75. ["part9"] = { type = "Model", model = "models/props_wasteland/gear01.mdl", bone = "Slide", rel = "", pos = Vector(2.19, 16.007, -5.147), angle = Angle(90, -90, 0), size = Vector(0.097, 0.097, 0.097), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_buildings/plasterwall021a", skin = 0, bodygroup = {} },
  76. ["part6"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "Slide", rel = "", pos = Vector(3.088, 17.693, -5.047), angle = Angle(-46.413, 0, 0), size = Vector(0.021, 0.021, 0.012), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  77. ["part3"] = { type = "Model", model = "models/props_rooftop/chimneytoppipe_cluster02a.mdl", bone = "Slide", rel = "", pos = Vector(2.417, 17.799, -5.705), angle = Angle(-44.8, -2.5, 2), size = Vector(0.019, 0.019, 0.019), color = Color(255, 255, 255, 255), surpresslightning = false, material = "metal2", skin = 0, bodygroup = {} },
  78. ["part8"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "Slide", rel = "", pos = Vector(3.109, 16.652, -5.088), angle = Angle(-46.156, 0, 0), size = Vector(0.021, 0.021, 0.012), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  79. ["part5"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "Slide", rel = "", pos = Vector(3.081, 18.263, -5.06), angle = Angle(-46.163, 0, 0), size = Vector(0.021, 0.021, 0.012), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  80. ["part2"] = { type = "Model", model = "models/props_borealis/bluebarrel001.mdl", bone = "Slide", rel = "", pos = Vector(2.099, 16, -5.16), angle = Angle(-90, 0, 0), size = Vector(0.025, 0.025, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "metal6", skin = 0, bodygroup = {} },
  81. ["part7"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "Slide", rel = "", pos = Vector(3.065, 17.242, -5.062), angle = Angle(-46.138, 0, 0), size = Vector(0.021, 0.021, 0.012), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  82. ["part4"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "Slide", rel = "", pos = Vector(3.091, 18.75, -5.058), angle = Angle(-46.936, 0.001, 0.001), size = Vector(0.021, 0.021, 0.012), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} }
  83. }
  84.  
  85. SWEP.WElements = {
  86. ["part1"] = { type = "Model", model = "models/props_junk/terracotta01.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(4.177, 3.338, -3.184), angle = Angle(-89.693, 90.737, 0.25), size = Vector(0.143, 0.143, 0.143), color = Color(255, 255, 255, 255), surpresslightning = false, material = "metal6", skin = 0, bodygroup = {} },
  87. ["part9"] = { type = "Model", model = "models/props_wasteland/gear01.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(4.179, 2.269, -3.304), angle = Angle(6.981, -2.731, -9.325), size = Vector(0.188, 0.188, 0.188), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_buildings/plasterwall021a", skin = 0, bodygroup = {} },
  88. ["part6"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(7.13, 1.601, -3.339), angle = Angle(0, -2.188, -29.577), size = Vector(0.054, 0.054, 0.014), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  89. ["part3"] = { type = "Model", model = "models/props_rooftop/chimneytoppipe_cluster02a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(7.046, 2.038, -4.086), angle = Angle(51.352, -94.668, -0.853), size = Vector(0.041, 0.041, 0.041), color = Color(255, 255, 255, 255), surpresslightning = false, material = "metal2", skin = 0, bodygroup = {} },
  90. ["part8"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(9.211, 1.873, -3.379), angle = Angle(0.196, -2.056, -29.649), size = Vector(0.054, 0.054, 0.014), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  91. ["part5"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(5.88, 1.531, -3.322), angle = Angle(0, -2.106, -29.538), size = Vector(0.054, 0.054, 0.014), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  92. ["part2"] = { type = "Model", model = "models/props_borealis/bluebarrel001.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(4.142, 2.329, -3.083), angle = Angle(-90, 90, 0), size = Vector(0.057, 0.057, 0.057), color = Color(255, 255, 255, 255), surpresslightning = false, material = "metal6", skin = 0, bodygroup = {} },
  93. ["part7"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(7.94, 1.496, -3.317), angle = Angle(0, -2.178, -29.469), size = Vector(0.054, 0.054, 0.014), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} },
  94. ["part4"] = { type = "Model", model = "models/props_rooftop/gutter_pipe_128.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(4.834, 1.304, -3.233), angle = Angle(0, -2.118, -29.556), size = Vector(0.054, 0.054, 0.014), color = Color(255, 255, 255, 255), surpresslightning = false, material = "perftest/loader/crate02b", skin = 0, bodygroup = {} }
  95. }
  96.  
  97.  
  98.  
  99. Server Content : Mono.Zip
  100.  
  101. version="271215"
  102.  
  103. #### Variables ####
  104.  
  105. # Notification Email
  106. # (on|off)
  107. emailnotification="off"
  108. email="email@example.com"
  109.  
  110. # Steam login
  111. steamuser="anonymous"
  112. steampass=""
  113.  
  114. # Workshop Variables
  115. # http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
  116. workshopauth=""
  117. workshopcollectionid=""
  118.  
  119. # Start Variables
  120. defaultmap="gm_construct"
  121. gamemode="sandbox"
  122. maxplayers="16"
  123. port="27015"
  124. sourcetvport="27020"
  125. clientport="27005"
  126. ip="0.0.0.0"
  127. updateonstart="off"
  128.  
  129. # Optional: Game Server Login Token
  130. # GSLT can be used for running a public server.
  131. # More info: http://gameservermanagers.com/gslt
  132. gslt=""
  133.  
  134. # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
  135. fn_parms(){
  136. parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
  137. }
  138.  
  139. #### Advanced Variables ####
  140.  
  141. # Github Branch Select
  142. # Allows for the use of different function files
  143. # from a different repo and/or branch.
  144. githubuser="dgibbs64"
  145. githubrepo="linuxgsm"
  146. githubbranch="master"
  147.  
  148. # Steam
  149. appid="4020"
  150.  
  151. # Server Details
  152. servicename="gmod-server"
  153. gamename="Garry's Mod"
  154. engine="source"
  155.  
  156. # Directories
  157. rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
  158. selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  159. lockselfname=".${servicename}.lock"
  160. filesdir="${rootdir}/serverfiles"
  161. systemdir="${filesdir}/garrysmod"
  162. executabledir="${filesdir}"
  163. executable="./srcds_run"
  164. servercfg="${servicename}.cfg"
  165. servercfgdir="${systemdir}/cfg"
  166. servercfgfullpath="${servercfgdir}/${servercfg}"
  167. servercfgdefault="${servercfgdir}/lgsm-default.cfg"
  168. backupdir="${rootdir}/backups"
  169.  
  170. # Logging
  171. logdays="7"
  172. gamelogdir="${systemdir}/logs"
  173. scriptlogdir="${rootdir}/log/script"
  174. consolelogdir="${rootdir}/log/console"
  175.  
  176. scriptlog="${scriptlogdir}/${servicename}-script.log"
  177. consolelog="${consolelogdir}/${servicename}-console.log"
  178. emaillog="${scriptlogdir}/${servicename}-email.log"
  179.  
  180. scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
  181. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
  182.  
  183. ##### Script #####
  184. # Do not edit
  185.  
  186. fn_getgithubfile(){
  187. filename=$1
  188. exec=$2
  189. fileurl=${3:-$filename}
  190. filepath="${rootdir}/${filename}"
  191. filedir=$(dirname "${filepath}")
  192. # If the function file is missing, then download
  193. if [ ! -f "${filepath}" ]; then
  194. if [ ! -d "${filedir}" ]; then
  195. mkdir "${filedir}"
  196. fi
  197. githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
  198. echo -e " fetching ${filename}...\c"
  199. if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
  200. :
  201. else
  202. echo -e "\e[0;31mFAIL\e[0m\n"
  203. echo "Curl is not installed!"
  204. echo -e ""
  205. exit
  206. fi
  207. curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
  208. if [ $? -ne 0 ]; then
  209. echo -e "\e[0;31mFAIL\e[0m\n"
  210. echo "${curl}"
  211. echo -e "${githuburl}\n"
  212. exit
  213. else
  214. echo -e "\e[0;32mOK\e[0m"
  215. fi
  216. if [ "${exec}" ]; then
  217. chmod +x "${filepath}"
  218. fi
  219. fi
  220. if [ "${exec}" ]; then
  221. source "${filepath}"
  222. fi
  223. }
  224.  
  225. fn_runfunction(){
  226. fn_getgithubfile "functions/${functionfile}" 1
  227. }
  228.  
  229. core_functions.sh(){
  230. # Functions are defined in core_functions.sh.
  231. functionfile="${FUNCNAME}"
  232. fn_runfunction
  233. }
  234.  
  235. core_functions.sh
  236.  
  237. getopt=$1
  238. core_getopt.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement