Renewal/lua/arccw/shared/attachments/ur_1911_cal_9mm.lua

67 lines
2.2 KiB
Lua
Raw Normal View History

2024-02-29 22:16:56 -05:00
att.PrintName = "SR1911 9x19mm Parabellum Conversion"
att.AbbrevName = "9x19mm Parabellum"
if !GetConVar("arccw_truenames"):GetBool() then
att.PrintName = "AMAS Competition 9mm Parabellum Conversion"
end
att.SortOrder = 9
att.Icon = Material("entities/att/uc_bullets/9x19.png", "smooth mips")
att.Description = "A popular alternative caliber to .45 ACP. With a reduced diameter, the round achieves greater muzzle velocity and magazine capacity."
att.Desc_Pros = {
}
att.Desc_Cons = {
}
att.Desc_Neutrals = {
}
att.Slot = "ur_m1911_caliber"
att.AutoStats = true
att.Override_Trivia_Calibre = "9x19mm Parabellum"
att.Override_Trivia_Manufacturer = "Sturm, Ruger & Company"
att.Mult_Damage = 30 / 45
att.Mult_DamageMin = 17 / 15
att.Mult_Penetration = 6 / 9
att.Mult_Range = 1.25
att.Mult_RPM = 525 / 450
att.Mult_ReloadTime = .9
att.Mult_Recoil = 0.85
att.Mult_RecoilSide = 0.75
att.Mult_PhysBulletMuzzleVelocity = 1.4 -- 350 / 253
att.Override_TracerNum = 1
att.Override_TracerNum_Priority = 0.5 -- subsonic can override
att.Mult_ClipSize = 9 / 7
att.Override_ShellModel = "models/weapons/arccw/uc_shells/9x19.mdl"
att.Override_ShellScale = 1
local path = ")^weapons/arccw_ur/1911/"
att.Hook_GetShootSound = function(wep, sound) -- Temporary
if wep:GetBuff_Override("Silencer") then
return {path .. "fire-9-sup-01.ogg", path .. "fire-9-sup-02.ogg", path .. "fire-9-sup-03.ogg", path .. "fire-9-sup-04.ogg", path .. "fire-9-sup-05.ogg", path .. "fire-9-sup-06.ogg"}
else
return {path .. "fire-9-01.ogg", path .. "fire-9-02.ogg", path .. "fire-9-03.ogg", path .. "fire-9-04.ogg", path .. "fire-9-05.ogg", path .. "fire-9-06.ogg"}
end
end
local tail = ")^/arccw_uc/common/9x19/"
att.Hook_GetDistantShootSoundOutdoors = function(wep, distancesound)
if wep:GetBuff_Override("Silencer") then
-- fallback to script
else
return {
tail .. "fire-dist-9x19-pistol-ext-01.ogg",
tail .. "fire-dist-9x19-pistol-ext-02.ogg",
tail .. "fire-dist-9x19-pistol-ext-03.ogg",
tail .. "fire-dist-9x19-pistol-ext-04.ogg",
tail .. "fire-dist-9x19-pistol-ext-05.ogg",
tail .. "fire-dist-9x19-pistol-ext-06.ogg"
}
end
end