Autogen mags again

This commit is contained in:
Fesiug 2024-01-01 17:56:57 -05:00
parent ed6ed763ed
commit f044b4db68
1 changed files with 10 additions and 6 deletions

View File

@ -171,6 +171,7 @@ do -- Pistols
-- --
AmmoStd = 7, AmmoStd = 7,
AutoGenMag = true,
Delay = (60/180), Delay = (60/180),
Firemodes = FIREMODE_SEMI, Firemodes = FIREMODE_SEMI,
Damage = 47, Damage = 47,
@ -189,14 +190,17 @@ do -- Pistols
Speed_FiringTime = 0.5, Speed_FiringTime = 0.5,
}) })
ItemDef("mag_deagle", { end
Name = "MAG: DEAGLE 7-rnd",
Base = "base_magazine",
Ammo = 7,
})
for i, v in SortedPairs( WEAPONS ) do
if v.AutoGenMag then
ItemDef("mag_" .. i, {
Name = "MAG: " .. v.Name,
Base = "base_magazine",
Ammo = v.AmmoStd,
})
end
end end
--[[ --[[
ItemDef("deagle", { ItemDef("deagle", {