Files
wnsrc/lua/arccw/shared/attachments/uc_optic_nvis.lua

128 lines
3.6 KiB
Lua
Raw Permalink Normal View History

2024-08-05 18:40:29 +03:00
--[[
| 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/
--]]
att.PrintName = "N-Vision HALO-LR Thermal Scope (1-6x)"
att.AbbrevName = "HALO-LR (1-6x)"
att.Icon = Material("entities/att/acwatt_uc_optic_nvis.png", "mips smooth")
att.Description = "Cutting-edge night vision optic that highlights targets via infrared imaging. The complicated electronics result in a massive weight gain for the base weapon."
att.SortOrder = 6
att.Desc_Pros = {
"autostat.holosight",
"autostat.zoom",
"autostat.thermal"
}
att.Desc_Cons = {
}
att.Desc_Neutrals = {
"Double-tap +USE to toggle imaging modes"
}
att.AutoStats = true
att.Slot = {"optic"}
att.Model = "models/weapons/arccw/atts/uc_nvis.mdl"
att.ModelOffset = Vector(0, 0, 0.18)
att.AdditionalSights = {
{
Pos = Vector(-0.035, 6.5, -1.25),
Ang = Angle(0, 0, 0),
Magnification = 1.1,
ViewModelFOV = 25,
ScrollFunc = ArcCW.SCROLL_ZOOM,
ZoomLevels = 3,
ScopeMagnification = UC_HalfScope( 1.5 ),
Thermal = true,
ThermalScopeColor = Color(255, 255, 255),
ThermalHighlightColor = Color(255, 255, 255),
ThermalFullColor = false,
ThermalScopeSimple = false,
ThermalNoCC = false,
ThermalBHOT = false,
IgnoreExtra = true,
Contrast = 0.51,
Brightness = 0.1,
ForceLowRes = true,
FPSLock = 42,
},
{
Pos = Vector(-0.035, 6.5, -1.25),
Ang = Angle(0, 0, 0),
Magnification = 1.1,
ViewModelFOV = 25,
ScrollFunc = ArcCW.SCROLL_ZOOM,
ZoomLevels = 3,
ScopeMagnification = UC_HalfScope( 1.5 ),
Thermal = true,
ThermalScopeColor = Color(255, 255, 255),
ThermalHighlightColor = Color(0, 0, 0),
ThermalFullColor = false,
ThermalScopeSimple = false,
ThermalNoCC = false,
ThermalBHOT = false,
IgnoreExtra = true,
Contrast = 0.7,
Brightness = 0.5,
ForceLowRes = true,
FPSLock = 42,
},
{
Pos = Vector(-0.035, 6.5, -1.25),
Ang = Angle(0, 0, 0),
Magnification = 1.1,
ViewModelFOV = 25,
ScrollFunc = ArcCW.SCROLL_ZOOM,
ZoomLevels = 3,
ScopeMagnification = UC_HalfScope( 1.5 ),
IgnoreExtra = true,
ForceLowRes = true,
FPSLock = 42,
SpecialScopeFunction = function(screen)
render.PushRenderTarget(screen)
DrawColorModify({
["$pp_colour_addr"] = 0,
["$pp_colour_addg"] = 0,
["$pp_colour_addb"] = 0,
["$pp_colour_brightness"] = 0,
["$pp_colour_contrast"] = 1,
["$pp_colour_colour"] = 0.75,
["$pp_colour_mulr"] = 0,
["$pp_colour_mulg"] = 0,
["$pp_colour_mulb"] = 0
})
render.PopRenderTarget()
end,
},
}
att.ScopeGlint = false
att.Holosight = true
att.HolosightReticle = Material("hud/scopes/uc_nvis_reticle1grid.png", "mips smooth")
att.HolosightNoFlare = true
att.HolosightSize = 20
att.HolosightBone = "holosight"
att.HolosightPiece = "models/weapons/arccw/atts/uc_nvis_hsp.mdl"
att.Colorable = false
att.HolosightBlackbox = true
att.HolosightMagnification = UC_HalfScope( 1.5 )
att.HolosightMagnificationMin = UC_HalfScope( 1.5 )
att.HolosightMagnificationMax = UC_HalfScope( 6 )
att.Mult_SightTime = 1.1
att.Mult_SightedSpeedMult = 0.7
att.Mult_Sway = 1.25