AddCSLuaFile()



if CLIENT then

	SWEP.PrintName = "'Adonis' Pulse Rifle"

	SWEP.Description = "Deals massive damage and slows targets."

	SWEP.Slot = 2

	SWEP.SlotPos = 0



	SWEP.ViewModelFlip = false

	SWEP.ViewModelFOV = 60



	SWEP.HUD3DBone = "Vent"

	SWEP.HUD3DPos = Vector(1, 0, 0)	

	SWEP.HUD3DScale = 0.018

end



SWEP.Base = "weapon_zs_base"



SWEP.HoldType = "ar2"



SWEP.ViewModel = "models/weapons/c_irifle.mdl"

SWEP.WorldModel = "models/weapons/w_IRifle.mdl"

SWEP.UseHands = true



SWEP.CSMuzzleFlashes = false



SWEP.ReloadSound = Sound("Weapon_SMG1.Reload")

SWEP.Primary.Sound = Sound("Airboat.FireGunHeavy")

SWEP.Primary.Damage = 34

SWEP.Primary.NumShots = 1

SWEP.Primary.Delay = 0.2



SWEP.Primary.ClipSize = 20

SWEP.Primary.Automatic = true

SWEP.Primary.Ammo = "pulse"

GAMEMODE:SetupDefaultClip(SWEP.Primary)



SWEP.ConeMax = 0.06

SWEP.ConeMin = 0.02



SWEP.WalkSpeed = SPEED_SLOW



SWEP.IronSightsPos = Vector(-3, 1, 1)



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



	local e = EffectData()

		e:SetOrigin(tr.HitPos)

		e:SetNormal(tr.HitNormal)

		e:SetRadius(8)

		e:SetMagnitude(1)

		e:SetScale(1)

	util.Effect("cball_bounce", e)



	GenericBulletCallback(attacker, tr, dmginfo)

end

