im having trouble with my swep im trying to create
1. the hold type never changes
2. and how could i make my code better
3. and can someone give me the holster function like world anim
thanks
code :
SWEP.HoldType = "ar2"
SWEP.Base = "weapon_mad_base"
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = true
SWEP.ViewModel = "models/weapons/v_acr.mdl"
SWEP.WorldModel = "models/weapons/w_acr.mdl"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWEP.Primary.Sound = Sound("Weapon_ACR.Single")
SWEP.Primary.Recoil = 0.85
SWEP.Primary.Damage = 11
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.01
SWEP.Primary.Delay = 0.13
SWEP.Primary.ClipSize = 20 // Size of a clip
SWEP.Primary.DefaultClip = 20 // Default number of bullets in a clip
SWEP.Primary.Automatic = true // Automatic/Semi Auto
SWEP.Primary.Ammo = "pistol"
SWEP.Secondary.ClipSize = -1 // Size of a clip
SWEP.Secondary.DefaultClip = -1 // Default number of bullets in a clip
SWEP.Secondary.Automatic = false // Automatic/Semi Auto
SWEP.Secondary.Ammo = "none"
SWEP.ShellEffect = "effect_mad_shell_rifle" // "effect_mad_shell_pistol" or "effect_mad_shell_rifle" or "effect_mad_shell_shotgun"
SWEP.ShellDelay = 0.05
SWEP.Pistol = false
SWEP.Rifle = true
SWEP.Shotgun = false
SWEP.Sniper = false
SWEP.IronSightsPos = Vector(4.85, -2, -1.3)
SWEP.RunArmOffset = Vector (-2.6657, 0, 2.5)
SWEP.RunArmAngle = Vector (-20.0824, -20.5693, 0)
/*---------------------------------------------------------
Name: SWEP:Precache()
Desc: Use this function to precache stuff.
---------------------------------------------------------*/
function SWEP:Precache()
util.PrecacheSound("weapons/ump45/ump45-1.wav")
end
Sorry, you need to Log In to post a reply to this thread.