• How do i do this
    5 replies, posted
How do i add a Gmod default weapon (spas 12) To a ttt server??? do i need the SWEP... if so, where can i find it? Where are the models? HELP!
first of all "how do i do this" is a stupid ass title. secondly most sweps for gmod use css weapons.
This thread is more than confusing, please explain more thoroughly what you want. [URL="http://ttt.badking.net/custom-weapon-guide"]This[/URL] should help maybe?
Either you find a download for the SWEPS or you take the default SWEP files that TTT has and edit them for example change the name/model thats used/sound thats played on fire/and the kill icon. You have to make your own icons unless you jack em from another server which would be lame. **edit** This is located in your garrysmod/gamemodes/terrortown/entities/weapons/weapon_zm_mac10.lua [lua] if SERVER then AddCSLuaFile( "shared.lua" ) end SWEP.HoldType = "ar2" if CLIENT then SWEP.PrintName = "MAC10" SWEP.Slot = 2 SWEP.Icon = "VGUI/ttt/icon_mac" end SWEP.Base = "weapon_tttbase" SWEP.Kind = WEAPON_HEAVY SWEP.WeaponID = AMMO_MAC10 SWEP.Primary.Damage = 15 SWEP.Primary.Delay = 0.085 SWEP.Primary.Cone = 0.04 -- 0.025 SWEP.Primary.ClipSize = 25 SWEP.Primary.ClipMax = 60 SWEP.Primary.DefaultClip = 25 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "smg1" SWEP.Primary.Recoil = 1.1 SWEP.Primary.Sound = Sound( "Weapon_mac10.Single" ) SWEP.AutoReload = true SWEP.AutoSpawnable = true SWEP.AmmoEnt = "item_ammo_smg1_ttt" SWEP.ViewModel = "models/weapons/v_smg_mac10.mdl" SWEP.WorldModel = "models/weapons/w_smg_mac10.mdl" SWEP.HeadshotMultiplier = 1.5 SWEP.IronSightsPos = Vector( 6.62, -3, 2.9 ) SWEP.IronSightsAng = Vector( 0.7, 5.3, 7 ) SWEP.DeploySpeed = 3 [/lua] download notepad++ and set the language to Lua it will make reading/understanding this much easier
better yet grab the np++ gmod plugin (if you get np++, someone also made one for sublime somewhere here on facepunch) it will do syntax highlighting for globals, enums, meta methods etc
SWEP.Primary.Automatic = true; for de shotgun. thur u go, spas12 der
Sorry, you need to Log In to post a reply to this thread.