mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
38
addons/tfa-base/lua/tfa/att/ammo_flechette_shells.lua
Normal file
38
addons/tfa-base/lua/tfa/att/ammo_flechette_shells.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
--[[
|
||||
| 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 = "Flechette Shells" -- Fully attachment name
|
||||
ATTACHMENT.ShortName = "Flechette" -- Abbreviation, 5 chars or less please
|
||||
ATTACHMENT.Icon = "entities/flechetterounds.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.Description = {
|
||||
TFA.AttachmentColors["="], "Flechette Darts",
|
||||
TFA.AttachmentColors["+"], "Improves the accuracy",
|
||||
TFA.AttachmentColors["+"], "Improves the penetration",
|
||||
TFA.AttachmentColors["+"], "+8 Pellets",
|
||||
TFA.AttachmentColors["-"], "-50% Damage"}
|
||||
|
||||
ATTACHMENT.WeaponTable = {
|
||||
["Primary"] = {
|
||||
["IronAccuracy"] = function( wep, stat ) return math.max( stat * 0.75 ) end,
|
||||
["Spread"] = function( wep, stat ) return math.max( stat * 0.75 ) end,
|
||||
["PenetrationMultiplier"] = function( wep, stat ) return stat * 2 end,
|
||||
["NumShots"] = function( wep, stat ) return stat + 8 end,
|
||||
["Damage"] = function(wep,stat) return stat * 0.50 end,
|
||||
}
|
||||
}
|
||||
|
||||
if not TFA_ATTACHMENT_ISUPDATING then
|
||||
TFAUpdateAttachments()
|
||||
end
|
||||
Reference in New Issue
Block a user