Files
wnsrc/lua/arccw/shared/attachments/ur_329_caliber_44special.lua
lifestorm 6a58f406b1 Upload
2024-08-04 23:54:45 +03:00

63 lines
1.8 KiB
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
att.PrintName = "Model 329PD .44 Special Chambering"
att.AbbrevName = ".44 Special"
att.Icon = Material("entities/att/uc_bullets/44special.png","smooth mips")
att.Description = "A shorter length cartridge with lower recoil but reduced stopping power."
if !GetConVar("arccw_truenames"):GetBool() then
att.PrintName = "Enforcement .44 Special Chambering"
end
att.AutoStats = true
att.Slot = "ur_329_caliber"
att.Mult_RangeMin = 0.5
att.Mult_Range = 0.6
att.Mult_Recoil = 0.75
att.Override_PhysBulletMuzzleVelocity = 265
att.Override_Trivia_Calibre = ".44 Special"
local path = "weapons/arccw_ur/sw586/"
att.Hook_GetShootSound = function(wep, sound)
if wep:GetBuff_Override("Silencer") then
return -- how tf did you equip a suppressor with this
else
return {
path .. "fire-01.ogg",
path .. "fire-02.ogg",
path .. "fire-03.ogg",
path .. "fire-04.ogg",
path .. "fire-05.ogg",
path .. "fire-06.ogg",
} -- Placeholder(?)
end
end
local tail = ")^/arccw_uc/common/357mag/"
att.Hook_GetDistantShootSoundOutdoors = function(wep, distancesound)
if wep:GetBuff_Override("Silencer") then
-- fallback to script
else
return {
tail .. "fire-dist-357mag-pistol-ext-01.ogg",
tail .. "fire-dist-357mag-pistol-ext-02.ogg",
tail .. "fire-dist-357mag-pistol-ext-03.ogg",
tail .. "fire-dist-357mag-pistol-ext-04.ogg",
tail .. "fire-dist-357mag-pistol-ext-05.ogg",
tail .. "fire-dist-357mag-pistol-ext-06.ogg"
}
end
end