2014-10-02 08:49:54 +08:00
|
|
|
AddCSLuaFile()
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.PrintName = "'Silencer' SMG"
|
|
|
|
SWEP.Description = "Shrouds your aura and has very high burst DPS for an SMG, but poor 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.TMP_Parent"
|
|
|
|
SWEP.HUD3DPos = Vector(-1, -3.5, -1)
|
|
|
|
SWEP.HUD3DAng = Angle(0, 0, 0)
|
|
|
|
SWEP.HUD3DScale = 0.015
|
|
|
|
end
|
|
|
|
|
|
|
|
SWEP.Base = "weapon_zs_base"
|
|
|
|
|
|
|
|
SWEP.HoldType = "pistol"
|
|
|
|
|
|
|
|
SWEP.ViewModel = "models/weapons/cstrike/c_smg_tmp.mdl"
|
|
|
|
SWEP.WorldModel = "models/weapons/w_smg_tmp.mdl"
|
|
|
|
SWEP.UseHands = true
|
|
|
|
|
|
|
|
SWEP.Primary.Sound = Sound("Weapon_TMP.Single")
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Primary.Damage = 20
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.Primary.NumShots = 1
|
|
|
|
SWEP.Primary.Delay = 0.06
|
|
|
|
|
|
|
|
SWEP.Primary.ClipSize = 25
|
|
|
|
SWEP.Primary.Automatic = true
|
|
|
|
SWEP.Primary.Ammo = "smg1"
|
|
|
|
GAMEMODE:SetupDefaultClip(SWEP.Primary)
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ReloadSpeed = 0.72
|
|
|
|
SWEP.FireAnimSpeed = 3
|
|
|
|
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.Primary.Gesture = ACT_HL2MP_GESTURE_RANGE_ATTACK_SMG1
|
|
|
|
SWEP.ReloadGesture = ACT_HL2MP_GESTURE_RELOAD_SMG1
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ConeMax = 6.5
|
|
|
|
SWEP.ConeMin = 3.6
|
2014-10-02 08:49:54 +08:00
|
|
|
|
|
|
|
SWEP.WalkSpeed = SPEED_NORMAL
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Tier = 3
|
|
|
|
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.IronSightsPos = Vector(-7, 3, 2.5)
|
2018-05-02 06:32:59 +08:00
|
|
|
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_MAX_SPREAD, -0.8125)
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_MIN_SPREAD, -0.45)
|
|
|
|
|
|
|
|
function SWEP:GetAuraRange()
|
|
|
|
return 512
|
|
|
|
end
|