Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- SWEP.HoldType = "ar2"
- if CLIENT then
- SWEP.PrintName = "MP5"
- SWEP.Slot = 2
- SWEP.Icon = "vgui/ttt/icon_mac"
- end
- SWEP.Base = "weapon_tttbase"
- SWEP.Kind = WEAPON_HEAVY
- SWEP.WeaponID = AMMO_MAC10
- SWEP.Primary.Damage = 16
- SWEP.Primary.Delay = 0.10
- SWEP.Primary.Cone = 0.03
- SWEP.Primary.ClipSize = 30
- SWEP.Primary.ClipMax = 60
- SWEP.Primary.DefaultClip = 30
- SWEP.Primary.Automatic = true
- SWEP.Primary.Ammo = "smg1"
- SWEP.Primary.Recoil = 1.15
- SWEP.Primary.Sound = Sound( "Weapon_MP5Navy.Single" )
- SWEP.AutoSpawnable = true
- SWEP.AmmoEnt = "item_ammo_smg1_ttt"
- SWEP.UseHands = true
- SWEP.ViewModelFlip = false
- SWEP.ViewModelFOV = 54
- SWEP.ViewModel = "models/weapons/cstrike/c_smg_mp5.mdl"
- SWEP.WorldModel = "models/weapons/w_smg_mp5.mdl"
- SWEP.IronSightsPos = Vector( -5.361, -7.481, 1.559 )
- SWEP.IronSightsAng = Vector( 2, 0, 0 )
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement