2014-10-02 08:49:54 +08:00
|
|
|
AddCSLuaFile()
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.PrintName = "'Crackler' Assault Rifle"
|
|
|
|
SWEP.Description = "An unsophisticated assault rifle which has good damage and accuracy."
|
|
|
|
|
|
|
|
SWEP.Slot = 2
|
|
|
|
SWEP.SlotPos = 0
|
2014-10-02 08:49:54 +08:00
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
if CLIENT then
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.ViewModelFlip = false
|
|
|
|
SWEP.ViewModelFOV = 60
|
|
|
|
|
|
|
|
SWEP.HUD3DBone = "v_weapon.famas"
|
|
|
|
SWEP.HUD3DPos = Vector(1.1, -3.5, 10)
|
|
|
|
SWEP.HUD3DScale = 0.02
|
|
|
|
end
|
|
|
|
|
|
|
|
SWEP.Base = "weapon_zs_base"
|
|
|
|
|
|
|
|
SWEP.HoldType = "ar2"
|
|
|
|
|
|
|
|
SWEP.ViewModel = "models/weapons/cstrike/c_rif_famas.mdl"
|
|
|
|
SWEP.WorldModel = "models/weapons/w_rif_famas.mdl"
|
|
|
|
SWEP.UseHands = true
|
|
|
|
|
|
|
|
SWEP.ReloadSound = Sound("Weapon_FAMAS.Clipout")
|
|
|
|
SWEP.Primary.Sound = Sound("Weapon_FAMAS.Single")
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Primary.Damage = 15
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.Primary.NumShots = 1
|
|
|
|
SWEP.Primary.Delay = 0.175
|
|
|
|
|
|
|
|
SWEP.Primary.ClipSize = 22
|
|
|
|
SWEP.Primary.Automatic = true
|
|
|
|
SWEP.Primary.Ammo = "ar2"
|
|
|
|
GAMEMODE:SetupDefaultClip(SWEP.Primary)
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ConeMax = 3.0 --0.045
|
|
|
|
SWEP.ConeMin = 1.6 --0.019
|
|
|
|
|
|
|
|
SWEP.ReloadSpeed = 1.1
|
2014-10-02 08:49:54 +08:00
|
|
|
|
|
|
|
SWEP.WalkSpeed = SPEED_SLOW
|
|
|
|
|
|
|
|
SWEP.IronSightsPos = Vector(-3, 3, 2)
|
2018-05-02 06:32:59 +08:00
|
|
|
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_MAX_SPREAD, -0.375, 1)
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_MIN_SPREAD, -0.2, 1)
|
|
|
|
GAMEMODE:AddNewRemantleBranch(SWEP, 1, "'Crackler' Combat Rifle", "Loses automatic fire rate but gains a bit of damage and accuracy", function(wept)
|
|
|
|
wept.Primary.Damage = wept.Primary.Damage * 1.2
|
|
|
|
wept.Primary.Delay = wept.Primary.Delay * 2
|
|
|
|
wept.Primary.ClipSize = 15
|
|
|
|
wept.ConeMin = wept.ConeMin * 0.7
|
|
|
|
wept.ConeMax = wept.ConeMax * 0.7
|
|
|
|
wept.Primary.Automatic = false
|
|
|
|
end)
|