ARC9_uplp_fesiug/lua/arc9/common/attachments_bulk/uplp-f_g36.lua

172 lines
4.1 KiB
Lua
Raw Normal View History

2024-03-21 01:48:42 -04:00
local ATT = {}
local iconfolder = "entities/uplp_attachements/"
-- Barrels
ATT = {}
ATT.PrintName = "G36 18.9\" (480mm) Barrel"
ATT.CompactName = "480mm"
ATT.Description = "Full-length barrel for the G36."
ATT.Category = "uplp_g36_barrel"
-- Positives
ATT.HeatCapacityMult = 1.24
2024-03-21 23:09:48 -04:00
ATT.SpreadAddHipFire = -0.01
ATT.RecoilUpMult = 0.65
ATT.RecoilSideMult = 0.7
ATT.RecoilAutoControlMult = 1.2
-- Negatives
ATT.AimDownSightsTimeAdd = 0.06
ATT.SprintToFireTimeAdd = 0.06
2024-03-21 01:48:42 -04:00
ARC9.LoadAttachment(ATT, "uplp_g36_barrel_19")
ATT = {}
ATT.PrintName = "G36K 12.5\" (318mm) Barrel"
ATT.CompactName = "318mm"
ATT.Description = "Carbine-length barrel for the G36K."
ATT.Category = "uplp_g36_barrel"
ATT.Ignore = true -- This one is installed by default.
ARC9.LoadAttachment(ATT, "uplp_g36_barrel_12")
ATT = {}
ATT.PrintName = "G36C 9\" (228mm) Barrel"
ATT.CompactName = "228mm"
ATT.Description = "Extremely compact barrel for the G36C. The extremely short barrel and reduced size of the gas system improves the cyclic rate of the weapon, but performs worse under pressure and heat."
ATT.Category = "uplp_g36_barrel"
2024-03-21 23:09:48 -04:00
ATT.ActivateElements = {"uplp_nocclamp_grips"}
2024-03-21 01:48:42 -04:00
-- Positives
2024-03-21 23:09:48 -04:00
ATT.RPMMult = 1.21
2024-03-21 01:48:42 -04:00
ATT.AimDownSightsTimeAdd = -0.03
ATT.SprintToFireTimeAdd = -0.03
-- Negatives
ATT.HeatCapacityMult = 0.34
2024-03-21 23:09:48 -04:00
ATT.RecoilUpMult = 1.45
ATT.RecoilSideMult = 1.55
2024-03-21 01:48:42 -04:00
ATT.RecoilAutoControlMult = 0.6
ATT.SpreadAddHipFire = -0.01
ARC9.LoadAttachment(ATT, "uplp_g36_barrel_9")
2024-03-21 23:09:48 -04:00
ATT = {}
ATT.PrintName = "G36 SL8 20\" (510mm) Barrel"
ATT.CompactName = "Bull 510mm"
ATT.Description = "Match-grade, heavy barrel for the SL8."
ATT.Category = "uplp_g36_barrel"
ARC9.LoadAttachment(ATT, "uplp_g36_barrel_sl8")
2024-03-21 01:48:42 -04:00
-- Stocks
ATT = {}
ATT.PrintName = "G36 Carbine Stock"
ATT.CompactName = "Carbine"
ATT.Description = "Shortened stock for G36C and used on later models of the G36K for its better handling while using body armor."
ATT.Category = "uplp_g36_stock"
ATT.AimDownSightsTimeAdd = -0.1
ATT.SprintToFireTimeAdd = -0.1
ATT.SpreadAddHipFire = -0.01
ATT.SpeedMultSights = 1.11
ATT.RecoilAutoControlMult = 0.8
ARC9.LoadAttachment(ATT, "uplp_g36_stock_carbine")
2024-03-21 23:09:48 -04:00
-- Receivers
ATT = {}
ATT.PrintName = "G36 SL8 Receiver & Stock"
ATT.CompactName = "SL8"
ATT.Description = "SL8 receiver and stock for the G36.."
ATT.Category = "uplp_g36_reciever"
ARC9.LoadAttachment(ATT, "uplp_g36_receiver_sl8")
-- Mags
ATT = {}
ATT.PrintName = "30-Round 5.56(x)45mm G36 Proprietary"
ATT.CompactName = "30R G36"
ATT.Description = "Proprietary 30-round magazine for the G36. It's got studs that allow multiple magazines to be attached to each other."
ATT.Category = "uplp_g36_mag"
ATT.Ignore = true -- This one is installed by default.
ARC9.LoadAttachment(ATT, "uplp_g36_mag_30")
ATT = {}
ATT.PrintName = "10-Round 5.56(x)45mm G36 Proprietary"
ATT.CompactName = "10R G36"
ATT.Description = "Proprietary 10-round magazine for the SL8."
ATT.Category = "uplp_g36_mag"
ATT.ClipSizeOverride = 10
ATT.Hook_TranslateAnimation = function(wep, anim)
if (anim == "reload" or anim == "reload_empty") then
return anim .. "_10"
end
end
ARC9.LoadAttachment(ATT, "uplp_g36_mag_10")
2024-03-21 01:48:42 -04:00
-- Optic
2024-03-21 23:09:48 -04:00
-- mid range magnified
-- from uplp_optic_bulk.lua
local sway_mid = 2
local stats_mid = {
-- SwayAddSights = 1,
SpeedAddSights = -0.2,
AimDownSightsTimeAdd = 0.05,
CustomCons = { [ARC9:GetPhrase("uplp_stat_scopedsway")] = sway_mid },
}
2024-03-21 01:48:42 -04:00
ATT = {}
ATT.PrintName = "G36 Integrated Optic"
ATT.CompactName = "Integrated"
ATT.Description = "Integrated optic for the G36."
ATT.Category = "uplp_g36_optic"
2024-03-21 23:09:48 -04:00
ATT.Sights = {
{
Pos = Vector(0, 7.5, -0.52),
Ang = Angle(0, -0, 0),
Magnification = 1.25,
ViewModelFOV = 45,
RTScopeFOV = 57 / 3,
SwayAddSights = sway_mid,
}
}
ATT.RTScope = true
ATT.RTScopeSubmatIndex = 2
ATT.RTScopeFOV = 57 / 3
ATT.RTScopeReticle = Material("vgui/uplp_reticles/somescope.png", "mips smooth")
ATT.RTScopeReticleScale = 1.1
ATT.RTScopeColorable = true
ATT.RTScopeShadowIntensity = 10
ATT.RTScopeBlackBox = true
ATT.RTScopeBlackBoxShadow = true
ATT.ScopeScreenRatio = 0.66
table.Merge(ATT, stats_mid)
2024-03-21 01:48:42 -04:00
ARC9.LoadAttachment(ATT, "uplp_g36_optic_integrated")