• Help ajusting FOV of Swep
    2 replies, posted
  • Avatar of Jackthemaster
  • [lua]if CLIENT then SWEP.DrawAmmo = true SWEP.DrawCrosshair = true SWEP.ViewModelFOV = 54 - (LocalPlayer():GetAimVector().z * -10) SWEP.ViewModelFlip = false SWEP.CSMuzzleFlashes = true SWEP.Slot = 3 SWEP.SlotPos = 1 SWEP.IconLetter = "E" SWEP.DrawWeaponInfoBox = false end[/lua] I'm pretty sure you guys already figured out what I am trying to do with the fov. I'm trying to make it l4d-ish, but for some reason the swep won't show up. Help? EDIT: By show up I mean it isn't in the spawn weapon menu.
  • Avatar of Crazy Quebec
  • Either SWEP.Spawnable is false or you made an error in the code and should look into your console for it.
  • And you probbably wanna do that in the think function or GetViewModelPosition maybe