Renewal/lua/arccw/shared/attachments/ur_mp5_barrel_eod.lua

31 lines
956 B
Lua

att.PrintName = "11\" EOD Barrel"
att.Icon = Material("entities/att/ur_mp5/upper_eod.png", "smooth mips")
att.Description = "Extended barrel and handguard assembly with a massive integrated muzzle brake to protect underbarrel weapons.\nDecreases muzzle rise, but performs poorly when hip firing."
att.Desc_Pros = {
}
att.Desc_Cons = {
"uc.nomuzzle",
"uc.nohg",
}
att.AutoStats = true
att.Slot = "ur_mp5_barrel"
att.SortOrder = 11
att.Mult_SightTime = 1.1
att.Mult_Sway = 1.15
att.Mult_Range = 1.25
att.Mult_Recoil = 0.8
att.Mult_AccuracyMOA = 0.75
att.Mult_HipDispersion = 1.2
att.Add_BarrelLength = 4
att.ActivateElements = {"ur_mp5_barrel_eod"}
att.GivesFlags = {"barrel_eod"}
att.Hook_AddShootSound = function(wep)
wep:EmitSound("weapons/arccw_ur/mp5/eod" .. math.random(1, 5) .. ".ogg", 70, math.Rand(98, 102), 1, CHAN_STATIC)
wep:EmitSound("weapons/arccw_ur/mp5/eo2" .. math.random(1, 6) .. ".ogg", 70, 100, 0.5, CHAN_STATIC)
end