Renewal/lua/arccw/shared/attachments/ur_1911_cal_10auto.lua

86 lines
2.5 KiB
Lua

att.PrintName = "Delta Elite 10mm Auto Conversion"
att.AbbrevName = "10mm Auto"
if !GetConVar("arccw_truenames"):GetBool() then
att.PrintName = "AMAS-FBI 10mm Auto Conversion"
end
-- att.Hook_NameChange = function(wep,name)
-- name = "Ruger SR1911"
-- end
att.SortOrder = 10
att.Icon = Material("entities/att/uc_bullets/10.png", "smooth mips")
att.Description = "The FBI's preferred caliber of choice.\nDespite its distinctive power, it's not as large as .45 ACP, though its damage curve is more balanced."
att.Desc_Pros = {
}
att.Desc_Cons = {
}
att.Desc_Neutrals = {
}
att.Slot = "ur_m1911_caliber"
att.AutoStats = true
att.Override_Trivia_Calibre = "10mm Auto"
-- att.Override_Trivia_Manufacturer = "Ruger"
att.Mult_Damage = 35 / 45
att.Mult_DamageMin = 20 / 15
att.Mult_Penetration = 8 / 9
att.Mult_RangeMin = 1.5
-- att.Mult_Recoil = 1.3
-- att.Mult_RecoilSide = 1.25
-- att.Mult_ReloadTime = 1.2
-- att.Mult_MalfunctionMean = 0.75
att.Mult_PhysBulletMuzzleVelocity = 1.5 --380 / 253
att.Override_TracerNum = 1
att.Override_TracerNum_Priority = 0.5 -- subsonic can override
att.Mult_ClipSize = 8 / 7
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-sup-01.ogg",
path .. "fire-sup-02.ogg",
path .. "fire-sup-03.ogg",
path .. "fire-sup-04.ogg",
path .. "fire-sup-05.ogg",
path .. "fire-sup-06.ogg"
}
else
return {path .. "fire-10-01.ogg", path .. "fire-10-02.ogg", path .. "fire-10-03.ogg", path .. "fire-10-04.ogg", path .. "fire-10-05.ogg", path .. "fire-10-06.ogg"}
end
end
att.Hook_GetDistantShootSoundOutdoors = function(wep, distancesound)
if wep:GetBuff_Override("Silencer") then
return -- fallback to script
else
return {path .. "fire-10-dist-01.ogg", path .. "fire-10-dist-02.ogg", path .. "fire-10-dist-03.ogg", path .. "fire-10-dist-04.ogg", path .. "fire-10-dist-05.ogg", path .. "fire-10-dist-06.ogg"}
end
end
--[[
att.Override_ClipSize = 15
att.Override_ClipSize_Priority = -1
local slotinfo = {
[7] = {"15-Round Mag", "15-Round Mag", nil},
}
att.Hook_GetDefaultAttName = function(wep, slot)
if slotinfo[slot] then
return GetConVar("arccw_truenames"):GetBool() and slotinfo[slot][2] or slotinfo[slot][1]
end
end
att.Hook_GetDefaultAttIcon = function(wep, slot)
if slotinfo[slot] then
return slotinfo[slot][3]
end
end
]]