2014-10-02 08:49:54 +08:00
|
|
|
AddCSLuaFile()
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.PrintName = "'Ender' Automatic Shotgun"
|
|
|
|
SWEP.Description = "Relatively accurate, clip loaded, automatic shotgun."
|
|
|
|
|
|
|
|
SWEP.Slot = 3
|
|
|
|
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.galil"
|
|
|
|
SWEP.HUD3DPos = Vector(1, 0, 6)
|
|
|
|
SWEP.HUD3DScale = 0.015
|
|
|
|
end
|
|
|
|
|
|
|
|
SWEP.Base = "weapon_zs_base"
|
|
|
|
|
|
|
|
SWEP.HoldType = "shotgun"
|
|
|
|
|
|
|
|
SWEP.ViewModel = "models/weapons/cstrike/c_rif_galil.mdl"
|
|
|
|
SWEP.WorldModel = "models/weapons/w_rif_galil.mdl"
|
|
|
|
SWEP.UseHands = true
|
|
|
|
|
|
|
|
SWEP.Primary.Sound = Sound("Weapon_Galil.Single")
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Primary.Damage = 9.5
|
|
|
|
SWEP.Primary.NumShots = 8
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.Primary.Delay = 0.4
|
|
|
|
|
|
|
|
SWEP.Primary.ClipSize = 8
|
|
|
|
SWEP.Primary.Automatic = true
|
|
|
|
SWEP.Primary.Ammo = "buckshot"
|
|
|
|
GAMEMODE:SetupDefaultClip(SWEP.Primary)
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ConeMax = 5.625
|
|
|
|
SWEP.ConeMin = 4.875
|
2014-10-02 08:49:54 +08:00
|
|
|
|
|
|
|
SWEP.WalkSpeed = SPEED_SLOWER
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Tier = 3
|
|
|
|
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_MAX_SPREAD, -0.603, 1)
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_MIN_SPREAD, -0.51, 1)
|
|
|
|
GAMEMODE:AddNewRemantleBranch(SWEP, 1, "'Ender' Automatic Slug Rifle", "Single accurate slug round, less total damage", function(wept)
|
|
|
|
wept.Primary.Damage = wept.Primary.Damage * 5.5
|
|
|
|
wept.Primary.NumShots = 1
|
|
|
|
wept.ConeMin = wept.ConeMin * 0.15
|
|
|
|
wept.ConeMax = wept.ConeMax * 0.3
|
|
|
|
end)
|
|
|
|
|
2014-10-02 08:49:54 +08:00
|
|
|
function SWEP:SecondaryAttack()
|
|
|
|
end
|