if SERVER then AddCSLuaFile() end SWEP.HoldType = "ar2" if CLIENT then SWEP.PrintName = "MAC10" SWEP.Slot = 2 SWEP.Icon = "VGUI/ttt/icon_mac" end sound.Add( { name = "TTT_MAC10", channel = CHAN_WEAPON, volume = 1, level = 100, pitch = 100, sound = "weapons/mac10/mac10-1.wav" } ) SWEP.Base = "weapon_tttbase" //// CUSTOM SPREAD VALUES SWEP.SpreadAdd = 0.1 SWEP.SpreadReset = 0.2 SWEP.SpreadMove = 0.4 SWEP.SpreadPattern = { { 0, .25 }, // first shot, tapping resets to this { -.35, 0 }, { .3, 0 }, { -.4, 0 }, { .2, 0 }, { -.45, 0 }, { .3, 0 }, } SWEP.RangeMin = 300 SWEP.RangeMax = 800 SWEP.RangeDamage = 6 SWEP.DeploySpeed = 2.5 SWEP.HeadshotMultiplier = 2.5 SWEP.Primary.Damage = 12 SWEP.Primary.Delay = 0.09 SWEP.Primary.Cone = 0 SWEP.Kind = WEAPON_HEAVY SWEP.WeaponID = AMMO_MAC10 SWEP.Primary.ClipSize = 30 SWEP.Primary.ClipMax = 60 SWEP.Primary.DefaultClip = 30 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "smg1" SWEP.Primary.Recoil = 1.2 -- 1.3 //SWEP.Primary.Sound = Sound( "Weapon_MP5Navy.Single" ) SWEP.Primary.Sound = Sound( "TTT_MAC10" ) SWEP.AutoSpawnable = true SWEP.AmmoEnt = "item_ammo_smg1_ttt" SWEP.UseHands = true SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 60 //SWEP.ViewModel = "models/weapons/cstrike/c_smg_mp5.mdl" //SWEP.WorldModel = "models/weapons/w_smg_mp5.mdl" SWEP.ViewModel = "models/weapons/cstrike/c_smg_mac10.mdl" SWEP.WorldModel = "models/weapons/w_smg_mac10.mdl" //SWEP.IronSightsPos = Vector(-5.345, -6, 1.9) //SWEP.IronSightsAng = Vector(1.2, 0, -1) SWEP.IronSightsPos = Vector(-8.921, -9.528, 2.9) SWEP.IronSightsAng = Vector(0.699, -5.301, -7) /* function SWEP:GetHeadshotMultiplier(victim, dmginfo) local att = dmginfo:GetAttacker() if not IsValid(att) then return 2 end local dist = victim:GetPos():Distance(att:GetPos()) local d = math.max(0, dist - 150) -- decay from 3.2 to 1.7 return 1.7 + math.max(0, (1.5 - 0.002 * (d ^ 1.25))) end */