Hello, I am not sure if this is the place to post this or anything. Sorry, I am new here. Anyway, I am trying to code a gun in from counterstrike to TTT for my server. I have tried so many times to add/edit the codes. What I usually end up with is these proplems,
Semi-Auto, fires as fast as you click
Reloads in the entire gun in less than one second and only puts in one shell.
The reloading animation freezes and doesn't finish unless you shoot to get your gun back to normal.
I can't seem to get the icon to show up in the detective shop even though I have got it to work with other items.
These are just the main problems. So I guess what I am trying to say is, can someone recode this so it will actually work. I have tried it so many times on my own and it just does not work. If anyone could help, I would be so happy, thanks.
Here is the original code.
=====================================================================================================================================================================================================
-- Variables that are used on both client and server
SWEP.Gun = ("bb_m3") -- must be the name of your swep
SWEP.Category = "CS:S"
SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models
SWEP.ShellEjectAttachment = "2" -- Should be "2" for CSS models or "1" for hl2 models
SWEP.PrintName = "M3 Super 90" -- Weapon name (Shown on HUD)
SWEP.Slot = 3 -- Slot in the weapon selection menu
SWEP.SlotPos = 3 -- 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 = 30 -- rank relative to other weapons. bigger is better
SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
SWEP.AutoSwitchFrom = true -- Auto switch from if you pick up a better weapon
SWEP.HoldType = "shotgun"
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = true
SWEP.ViewModel = "models/weapons/v_shot_m3super90.mdl" -- Weapon view model
SWEP.WorldModel = "models/weapons/w_shot_m3super90.mdl" -- Weapon world model
SWEP.Base = "bobs_shotty_base"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Primary.Sound = Sound("Weapon_M3.Single") -- script that calls the primary fire sound
SWEP.Primary.RPM = 70 -- This is in Rounds Per Minute
SWEP.Primary.ClipSize = 8 -- Size of a clip
SWEP.Primary.DefaultClip = 30 -- Default number of bullets in a clip
SWEP.Primary.KickUp = 5 -- Maximum up recoil (rise)
SWEP.Primary.KickDown = 0.8 -- Maximum down recoil (skeet)
SWEP.Primary.KickHorizontal = 1 -- Maximum up recoil (stock)
SWEP.Primary.Automatic = false -- Automatic/Semi Auto
SWEP.Primary.Ammo = "buckshot"
SWEP.Secondary.IronFOV = 60 -- How much you 'zoom' in. Less is more!
SWEP.ShellTime = .3
SWEP.Primary.NumShots = 9 -- How many bullets to shoot per trigger pull, AKA pellets
SWEP.Primary.Damage = 10 -- Base damage per bullet
SWEP.Primary.Spread = .035 -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
SWEP.Primary.IronAccuracy = .035 -- Ironsight accuracy, should be the same for shotguns
-- Because irons don't magically give you less pellet spread!
-- Enter iron sight info and bone mod info below
SWEP.IronSightsPos = Vector(5.738, -2.951, 3.378)
SWEP.IronSightsAng = Vector(0.15, 0, 0)
SWEP.SightsPos = Vector(5.738, -2.951, 3.378)
SWEP.SightsAng = Vector(0.15, 0, 0)
SWEP.RunSightsPos = Vector(0.328, -6.394, 1.475)
SWEP.RunSightsAng = Vector(-4.591, -48.197, -1.721)
=====================================================================================================================================================================================================
[highlight](User was banned for this post ("wrong section" - postal))[/highlight]
[URL="http://facepunch.com/forumdisplay.php?f=16"]You are in the wrong part of the site. Click here to go to Help and Support.[/URL]
[highlight](User was banned for this post ("report, don't reply / wrong back seat moderating" - postal))[/highlight]
Sorry, you need to Log In to post a reply to this thread.