Renewal/lua/arccw/shared/attachments/ur_ak_cal_366.lua

75 lines
2.3 KiB
Lua

att.PrintName = "VPO-209 .366 TKM Receiver"
att.AbbrevName = ".366 TKM Receiver"
--att.Icon = Material("entities/att/uc_bullets/366tkm.png", "mips smooth")
att.Icon = Material("entities/att/uc_bullets/762x39.png", "mips smooth")
att.Description = "Hunting round based on 7.62x39mm, with more powerful ranged ballistics than the parent cartridge. Weapons chambered for it are exclusively produced for the Russian civilian market, and are therefore semi-automatic only."
if !GetConVar("arccw_truenames"):GetBool() then
att.PrintName = "KFN-209 .366 TKM Receiver"
end
att.Desc_Pros = {
}
att.Desc_Cons = {
"uc.semionly"
}
att.Desc_Neutrals = {
}
att.Slot = "ur_ak_cal"
att.AutoStats = true
att.Mult_Damage = 1.2
att.Mult_DamageMin = 1.2
att.Mult_Range = 1.25
att.Mult_PrecisionMOA = .75
att.Mult_Penetration = 1.5
--att.Mult_ReloadTime = .9
att.Mult_RPM = 0.8
att.Mult_Recoil = 1.5
-- att.Override_ClipSize = 10
att.Mult_ShootVol = 130 / 125
-- att.Hook_SelectReloadAnimation = function(wep, anim)
-- return anim .. "_10rnd"
-- end
att.Override_Firemodes = {
{
Mode = 1,
},
{
Mode = 0
}
}
att.Override_ShellModel = "models/weapons/arccw/uc_shells/366tkm.mdl"
att.Override_ShellScale = .666
--att.Override_Trivia_Class = "Shotgun" -- The VPO-209 is considered a shotgun because of its smoothbore barrel
att.Override_Trivia_Calibre = ".366 TKM"
att.Override_Trivia_Manufacturer = "Molot-Oruzhiye"
-- att.ActivateElements = {"mag_366"}
att.GivesFlags = {"cal_366"}
local path = ")weapons/arccw_ur/ak/"
att.Hook_GetShootSound = function(wep, fsound)
if fsound == wep.ShootSound or fsound == wep.FirstShootSound then return {path .. "fire_366_1.ogg", path .. "fire_366_2.ogg", path .. "fire_366_3.ogg"} end
if fsound == wep.ShootSoundSilenced then return path .. "fire_sup_1.ogg" end -- Temporary?
end
-- local slotinfo = {
-- [5] = {"10-Round Mag", "10-Round Mag", Material("entities/att/ur_ak/magazines/366_10.png", "smooth mips")},
-- }
-- 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