mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
57
lua/tfa/att/ar15_ext_mag_60.lua
Normal file
57
lua/tfa/att/ar15_ext_mag_60.lua
Normal file
@@ -0,0 +1,57 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
if not ATTACHMENT then
|
||||
ATTACHMENT = {}
|
||||
end
|
||||
|
||||
ATTACHMENT.Name = "Extended Magazine"
|
||||
ATTACHMENT.Description = {
|
||||
TFA.AttachmentColors["+"], "Increases magazine capacity to 60 rounds."
|
||||
}
|
||||
ATTACHMENT.Icon = "entities/ins2_att_mag_ext_carbine_30rd.png" --Revers to label, please give it an icon though! This should be the path to a png, like "entities/tfa_ammo_match.png"
|
||||
ATTACHMENT.ShortName = "MAG+"
|
||||
|
||||
ATTACHMENT.WeaponTable = {
|
||||
["VElements"] = {
|
||||
["mag"] = {
|
||||
["active"] = false,
|
||||
},
|
||||
["mag_ext"] = {
|
||||
["active"] = true,
|
||||
}
|
||||
},
|
||||
["WElements"] = {
|
||||
["mag"] = {
|
||||
["active"] = false,
|
||||
},
|
||||
["mag_ext"] = {
|
||||
["active"] = true,
|
||||
}
|
||||
},
|
||||
|
||||
["Primary"] = {
|
||||
["ClipSize"] = function(wep, val)
|
||||
return wep.Primary.ClipSize_Drum or 60
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
function ATTACHMENT:Attach(wep)
|
||||
wep:Unload()
|
||||
end
|
||||
|
||||
function ATTACHMENT:Detach(wep)
|
||||
wep:Unload()
|
||||
end
|
||||
|
||||
if not TFA_ATTACHMENT_ISUPDATING then
|
||||
TFAUpdateAttachments()
|
||||
end
|
||||
Reference in New Issue
Block a user