Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GrimWim's Expertese Garrys Mod SWEP Mod :
- ASTEBINnew pastetrends
- GrimWim
- FREE
- Pastebin PRO Accounts February SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account!
- Garry's Mod SWEP
- SORISO FEB 13TH, 2016 51 NEVER
- rawdownloadreport Game Maker 9.34 KB
- -- Variables that are used on both client and server
- SWEP.Gun = ("sorisos_pistol") -- must be the name of your swep but NO CAPITALS!
- SWEP.Category = "M1911" --Category where you will find your weapons
- SWEP.Author = "Soriso"
- SWEP.Contact = "matteusmatu@gmail.com"
- SWEP.Purpose = "Killing, of course."
- SWEP.Instructions = "Left click to shoot, Right click to aim."
- SWEP.PrintName = "M1911" -- Weapon name (Shown on HUD)
- SWEP.Slot = 1 -- Slot in the weapon selection menu
- SWEP.SlotPos = 1 -- Position in the slot
- SWEP.DrawAmmo = true -- Should draw the default HL2 ammo counter
- SWEP.DrawWeaponInfoBox = false -- Should draw the weapon info box
- SWEP.BounceWeaponIcon = false -- Should the weapon icon bounce?
- SWEP.DrawCrosshair = true -- set false if you want no crosshair
- SWEP.Weight = 15 -- rank relative ot other weapons. bigger is better
- SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
- SWEP.AutoSwitchFrom = false -- Auto switch from if you pick up a better weapon
- SWEP.HoldType = "pistol" -- how others view you carrying the weapon
- -- normal melee melee2 fist knife smg ar2 pistol rpg physgun grenade shotgun crossbow slam passive
- -- you're mostly going to use ar2, smg, shotgun or pistol. rpg makes for good sniper rifles
- SWEP.ViewModelFOV = 70
- SWEP.ViewModelFlip = true
- SWEP.ViewModel = "models/weapons/v_pist_sori.mdl" -- Weapon view model
- SWEP.WorldModel = "models/weapons/w_Pist_p228.mdl" -- Weapon world model
- SWEP.ShowWorldModel = true
- SWEP.Base = "sorisos_gun_base" --the Base this weapon will work on. PLEASE RENAME THE BASE!
- SWEP.Spawnable = true
- SWEP.AdminSpawnable = true
- SWEP.FiresUnderwater = true
- SWEP.Primary.Sound = Sound("sorisos_pistol") -- Script that calls the primary fire sound
- SWEP.Primary.SilencedSound = Sound("") -- Sound if the weapon is silenced
- SWEP.Primary.RPM = 500 -- This is in Rounds Per Minute
- SWEP.Primary.ClipSize = 7 -- Size of a clip
- SWEP.Primary.DefaultClip = 7 -- Bullets you start with
- SWEP.Primary.KickUp = 0.4 -- Maximum up recoil (rise)
- SWEP.Primary.KickDown = 0.4 -- Maximum down recoil (skeet)
- SWEP.Primary.KickHorizontal = 0.3 -- Maximum up recoil (stock)
- SWEP.Primary.Automatic = false -- Automatic = true; Semi Auto = false
- SWEP.Primary.Ammo = "pistol" -- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun
- -- Pistol, buckshot, and slam always ricochet.
- --Use AirboatGun for a light metal peircing shotgun pellets
- SWEP.SelectiveFire = true
- SWEP.CanBeSilenced = false
- SWEP.Secondary.IronFOV = 55 -- How much you 'zoom' in. Less is more!
- SWEP.data = {} --The starting firemode
- SWEP.data.ironsights = 1
- SWEP.Primary.Damage = 20 -- Base damage per bullet
- SWEP.Primary.Spread = .02 -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
- SWEP.Primary.IronAccuracy = .001 -- Ironsight accuracy, should be the same for shotguns
- -- Enter iron sight info and bone mod info below
- SWEP.IronSightsPos = Vector(2.4, 0, 1.24)
- SWEP.IronSightsAng = Vector(0.212, -0.083, 1)
- SWEP.RunSightsPos = Vector(-5.661, 0, -5.738)
- SWEP.RunSightsAng = Vector(24.405, 0, 0)
- SWEP.VElements = {
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} }
- }
- SWEP.WElements = {
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} },
- ["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 = {} }
- }
- Server Content : Mono.Zip
- version="271215"
- #### Variables ####
- # Notification Email
- # (on|off)
- emailnotification="off"
- email="email@example.com"
- # Steam login
- steamuser="anonymous"
- steampass=""
- # Workshop Variables
- # http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
- workshopauth=""
- workshopcollectionid=""
- # Start Variables
- defaultmap="gm_construct"
- gamemode="sandbox"
- maxplayers="16"
- port="27015"
- sourcetvport="27020"
- clientport="27005"
- ip="0.0.0.0"
- updateonstart="off"
- # Optional: Game Server Login Token
- # GSLT can be used for running a public server.
- # More info: http://gameservermanagers.com/gslt
- gslt=""
- # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
- fn_parms(){
- 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}"
- }
- #### Advanced Variables ####
- # Github Branch Select
- # Allows for the use of different function files
- # from a different repo and/or branch.
- githubuser="dgibbs64"
- githubrepo="linuxgsm"
- githubbranch="master"
- # Steam
- appid="4020"
- # Server Details
- servicename="gmod-server"
- gamename="Garry's Mod"
- engine="source"
- # Directories
- rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
- selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
- lockselfname=".${servicename}.lock"
- filesdir="${rootdir}/serverfiles"
- systemdir="${filesdir}/garrysmod"
- executabledir="${filesdir}"
- executable="./srcds_run"
- servercfg="${servicename}.cfg"
- servercfgdir="${systemdir}/cfg"
- servercfgfullpath="${servercfgdir}/${servercfg}"
- servercfgdefault="${servercfgdir}/lgsm-default.cfg"
- backupdir="${rootdir}/backups"
- # Logging
- logdays="7"
- gamelogdir="${systemdir}/logs"
- scriptlogdir="${rootdir}/log/script"
- consolelogdir="${rootdir}/log/console"
- scriptlog="${scriptlogdir}/${servicename}-script.log"
- consolelog="${consolelogdir}/${servicename}-console.log"
- emaillog="${scriptlogdir}/${servicename}-email.log"
- scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
- consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
- ##### Script #####
- # Do not edit
- fn_getgithubfile(){
- filename=$1
- exec=$2
- fileurl=${3:-$filename}
- filepath="${rootdir}/${filename}"
- filedir=$(dirname "${filepath}")
- # If the function file is missing, then download
- if [ ! -f "${filepath}" ]; then
- if [ ! -d "${filedir}" ]; then
- mkdir "${filedir}"
- fi
- githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
- echo -e " fetching ${filename}...\c"
- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
- :
- else
- echo -e "\e[0;31mFAIL\e[0m\n"
- echo "Curl is not installed!"
- echo -e ""
- exit
- fi
- curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
- if [ $? -ne 0 ]; then
- echo -e "\e[0;31mFAIL\e[0m\n"
- echo "${curl}"
- echo -e "${githuburl}\n"
- exit
- else
- echo -e "\e[0;32mOK\e[0m"
- fi
- if [ "${exec}" ]; then
- chmod +x "${filepath}"
- fi
- fi
- if [ "${exec}" ]; then
- source "${filepath}"
- fi
- }
- fn_runfunction(){
- fn_getgithubfile "functions/${functionfile}" 1
- }
- core_functions.sh(){
- # Functions are defined in core_functions.sh.
- functionfile="${FUNCNAME}"
- fn_runfunction
- }
- core_functions.sh
- getopt=$1
- core_getopt.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement