• SWEP help
    3 replies, posted
hey guys, i need some help with a SWEP problem. I've been adding new guns to my ZS server and some of the new guns i've added don't have a Ammo counter on the side of them. So the players have no idea how much ammo they have. Here is one with : [IMG]http://i.imgur.com/thfxOjN.jpg[/IMG] And one without : [IMG]http://i.imgur.com/UP5drLj.jpg[/IMG] Some help would be greatly appreciated, as for i know somewhat what I'm doing with sweps.. but I sorta don't at the same time.
Some SWEP code would be nice?
[QUOTE=Lemmie;42085208]Some SWEP code would be nice?[/QUOTE] This is one [CODE] AddCSLuaFile() if CLIENT then SWEP.PrintName = "Elizabeth's Dagger" SWEP.Slot = 2 SWEP.SlotPos = 0 SWEP.HUD3DBone = "v_weapon.aug_Parent" SWEP.HUD3DPos = Vector(-0.85,2.5,4) SWEP.HUD3DAng = Angle(180, 180, 0) end SWEP.Base = "weapon_zs_base" SWEP.ViewModelFlip = true SWEP.HoldType = "ar2" SWEP.ViewModel = "models/weapons/v_rif_aug.mdl" SWEP.WorldModel = "models/weapons/w_rif_aug.mdl" SWEP.ViewModelFlip = true SWEP.Primary.Sound = Sound("Weapon_AUG.Single") SWEP.Primary.Damage = 27 SWEP.Primary.NumShots = 1 SWEP.Primary.Delay = 0.07 SWEP.Primary.ClipSize = 13 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "ar2" GAMEMODE:SetupDefaultClip(SWEP.Primary) SWEP.Primary.Gesture = ACT_HL2MP_GESTURE_RANGE_ATTACK_AR2 SWEP.ReloadGesture = ACT_HL2MP_GESTURE_RELOAD_AR2 SWEP.ConeMax = 0.08 SWEP.ConeMin = 0.02 SWEP.WalkSpeed = SPEED_FAST SWEP.IronSightsAng = Vector(1, 1, 0) SWEP.IronSightsPos = Vector(4.5, 5, 1.7) And here is another AddCSLuaFile() if CLIENT then SWEP.PrintName = "Sharknado!" SWEP.Slot = 2 SWEP.SlotPos = 0 SWEP.HUD3DBone = "Vent" SWEP.HUD3DPos = Vector(1, 0, 0) SWEP.HUD3DScale = 0.018 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 60 end SWEP.Base = "weapon_zs_base" SWEP.HoldType = "ar2" SWEP.ViewModel = "models/weapons/v_rif_galil.mdl" SWEP.WorldModel = "models/weapons/w_rif_galil.mdl" SWEP.ReloadSound = Sound("Weapon_SMG1.Reload") SWEP.Primary.Sound = Sound("Weapon_m249.Single") SWEP.Primary.Damage = 12.1 SWEP.Primary.NumShots = 1 SWEP.Primary.Delay = 0.08 SWEP.Primary.ClipSize = 150 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "ar2" GAMEMODE:SetupDefaultClip(SWEP.Primary) SWEP.ConeMax = 0.12 SWEP.ConeMin = 0.02 SWEP.WalkSpeed = SPEED_NORMAL SWEP.IronSightsPos = Vector(-5, 2, 2) SWEP.TracerName = "AR2Tracer" function SWEP.BulletCallback(attacker, tr, dmginfo) local ent = tr.Entity if ent:IsValid() and ent:IsPlayer() and ent:Team() == TEAM_UNDEAD then ent:AddLegDamage(4) end GenericBulletCallback(attacker, tr, dmginfo) end [B][I][U]This one has it but i dont see a change in the code?[/U][/I][/B] AddCSLuaFile() if CLIENT then SWEP.PrintName = "'Peashooter' Handgun" SWEP.Slot = 1 SWEP.SlotPos = 0 SWEP.ViewModelFOV = 70 SWEP.HUD3DBone = "v_weapon.p228_Slide" SWEP.HUD3DPos = Vector(-0.65, -0.25, 1) SWEP.HUD3DAng = Angle(0, 0, 180) end SWEP.Base = "weapon_zs_base" SWEP.HoldType = "pistol" SWEP.ViewModel = "models/weapons/v_pist_p228.mdl" SWEP.WorldModel = "models/weapons/w_pist_p228.mdl" SWEP.Primary.Sound = Sound("Weapon_P228.Single") SWEP.Primary.Damage = 16 SWEP.Primary.NumShots = 1 SWEP.Primary.Delay = 0.1 SWEP.Primary.ClipSize = 18 SWEP.Primary.Automatic = false SWEP.Primary.Ammo = "pistol" GAMEMODE:SetupDefaultClip(SWEP.Primary) SWEP.ConeMax = 0.08 SWEP.ConeMin = 0.015 SWEP.IronSightsPos = Vector(4.76, 10, 2.7)[/CODE]
Bumpity bump. Please someone help me resolve this. It's really frustrating and I need it solved
Sorry, you need to Log In to post a reply to this thread.