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

185 lines
4.9 KiB
Lua
Raw Normal View History

2024-03-15 22:24:36 -04:00
local ATT = {}
local iconfolder = "entities/uplp_attachements/"
-- H&K PHASE 1 PROTOTYPE LASER AIMING MODULE
ATT = {}
ATT.PrintName = "H&K Phase I Laser Aiming Module"
ATT.CompactName = "H&K PROTO"
ATT.Description = ATT.PrintName
ATT.Icon = Material(iconfolder .. "pistcomb.png", "mips smooth")
ATT.Model = "models/weapons/arc9/uplp/mk23_lam_old-2.mdl"
ATT.ActivateElements = {"uplp_tac_used"}
ATT.ToggleOnF = true -- This attachment is toggleable with the flashlight key.
ATT.ToggleStats = {
{
PrintName = ARC9:GetPhrase("uplp_togglestat_on"),
Laser = true,
LaserStrength = 1,
LaserColor = Color(255, 0, 0),
LaserAttachment = 2,
Flashlight = true,
FlashlightColor = Color(255, 255, 255),
FlashlightMaterial = "effects/flashlight001",
FlashlightDistance = 512,
FlashlightFOV = 31,
FlashlightAttachment = 1,
Flare = true,
FlareColor = Color(255, 0, 0),
FlareSize = 1,
FlareAttachment = 1,
FlareFocus = false,
-- Positives
SpreadAddHipFire = -0.01,
RecoilPerShotMult = 0.5,
-- Negatives
-- AimDownSightsTimeMult = 1.2,
},
{
PrintName = ARC9:GetPhrase("uplp_togglestat_off"),
}
}
ATT.CustomPros = {
[ARC9:GetPhrase("uplp_togglestat_on") .. " - " .. ARC9:GetPhrase("autostat.spread") .. " " .. ARC9:GetPhrase("autostat.secondary.hipfire")] = "-0.01",
-- [ARC9:GetPhrase("uplp_togglestat_on") .. " - " .. ARC9:GetPhrase("autostat.recoilpershot")] = "-50%",
}
-- ATT.CustomCons = {
-- [ARC9:GetPhrase("uplp_togglestat_on") .. " - " .. ARC9:GetPhrase("autostat.aimdownsightstime")] = "+20%",
-- }
ATT.SprintToFireTimeMult = 1.05
ATT.Category = {"uplp_tac", "uplp_tac_pistol"}
-- ATT.Category = "uplp_tac_pistol"
ATT.MenuCategory = "ARC9 - Poly Arms Attachments"
ATT.ModelOffset = Vector(-0.8, 0, 0)
ATT.Scale = 1/(4/3)
ATT.ModelAngleOffset = Angle(0, 0, 180)
ARC9.LoadAttachment(ATT, "uplp-f_tac_lamhk")
-- INSIGHT LASER AIMING MODULE AN/PEQ-6
ATT = {}
ATT.PrintName = "Insight AN/PEQ-6 Laser Aiming Module"
ATT.CompactName = "AN/PEQ-6"
ATT.Description = ATT.PrintName
ATT.Icon = Material(iconfolder .. "pistcomb.png", "mips smooth")
ATT.Model = "models/weapons/arc9/uplp/mk23_lam_new-1.mdl"
ATT.ActivateElements = {"uplp_tac_used"}
ATT.ToggleOnF = true -- This attachment is toggleable with the flashlight key.
ATT.ToggleStats = {
{
PrintName = ARC9:GetPhrase("uplp_togglestat_on"),
Laser = true,
LaserStrength = 1,
LaserColor = Color(255, 0, 0),
LaserAttachment = 2,
Flashlight = true,
FlashlightColor = Color(255, 255, 255),
FlashlightMaterial = "effects/flashlight001",
FlashlightDistance = 512,
FlashlightFOV = 31,
FlashlightAttachment = 1,
Flare = true,
FlareColor = Color(255, 0, 0),
FlareSize = 1,
FlareAttachment = 1,
FlareFocus = false,
-- Positives
SpreadAddHipFire = -0.01,
RecoilPerShotMult = 0.5,
-- Negatives
-- AimDownSightsTimeMult = 1.2,
},
{
PrintName = ARC9:GetPhrase("uplp_togglestat_off"),
}
}
ATT.CustomPros = {
[ARC9:GetPhrase("uplp_togglestat_on") .. " - " .. ARC9:GetPhrase("autostat.spread") .. " " .. ARC9:GetPhrase("autostat.secondary.hipfire")] = "-0.01",
-- [ARC9:GetPhrase("uplp_togglestat_on") .. " - " .. ARC9:GetPhrase("autostat.recoilpershot")] = "-50%",
}
-- ATT.CustomCons = {
-- [ARC9:GetPhrase("uplp_togglestat_on") .. " - " .. ARC9:GetPhrase("autostat.aimdownsightstime")] = "+20%",
-- }
ATT.SprintToFireTimeMult = 1.05
ATT.Category = {"uplp_tac", "uplp_tac_pistol"}
-- ATT.Category = "uplp_tac_pistol"
ATT.MenuCategory = "ARC9 - Poly Arms Attachments"
ATT.ModelOffset = Vector(-0.8, 0, 0)
ATT.Scale = 1/(4/3)
ATT.ModelAngleOffset = Angle(0, 0, 180)
ARC9.LoadAttachment(ATT, "uplp-f_tac_laminsight")
-- KAC MK.23 SUPPRESSOR
ATT = {}
ATT.PrintName = "KAC Suppressor"
ATT.CompactName = "KAC Supp."
ATT.Description = ATT.PrintName
ATT.SortOrder = 100
ATT.Icon = Material(iconfolder .. "heavypistsup.png", "mips smooth")
ATT.Model = "models/weapons/arc9/uplp/mk23_suppressor-3.mdl"
ATT.ModelOffset = Vector(0, 0, 0)
-- ATT.Scale = 1
ATT.Category = {"uplp_muzzle_pistol"}
ATT.MenuCategory = "ARC9 - Poly Arms Attachments"
ATT.ActivateElements = {"uplp_muzzle_used"}
ATT.Silencer = true
ATT.MuzzleParticleOverride = "muzzleflash_suppressed"
ATT.MuzzleParticleOverride_Priority = 10
ATT.MuzzleDevice = true
ATT.CustomPros = {
[ARC9:GetPhrase("uplp_stat_suppressed")] = " ",
}
ATT.ShootVolumeMult = 0.7
ATT.BarrelLengthAdd = 4
ATT.RangeMaxMult = 0.85
ATT.RecoilMult = 0.85
ATT.AimDownSightsTimeAdd = 0.04
ATT.SprintToFireTimeAdd = 0.03
ATT.Overheat = true
ATT.HeatCapacityMult = 1 --
ATT.HeatDissipation = 5 --
ATT.HeatPerShot = 1
ATT.HeatLockout = false
ATT.MalfunctionWait = 0
ATT.SpreadAddHot = 0.05
ATT.RPMMultHot = 0.85
ARC9.LoadAttachment(ATT, "uplp-f_muzzle_kacsup")