flir not detect map volumetric thing

This commit is contained in:
Darsu 2024-08-06 20:31:49 +07:00
parent 374ce31c42
commit 5024edaef1
2 changed files with 3 additions and 3 deletions

View File

@ -132,8 +132,7 @@ function SWEP:GetEntityHot(ent)
if !ent.ARC9_ColdTime then ent.ARC9_ColdTime = CurTime() + coldtime end
return ent.ARC9_ColdTime > CurTime()
end
if ent:IsVehicle() or ent:IsOnFire() or ent.ArcCW_Hot or ent:IsScripted() and !ent:GetOwner():IsValid() then -- arccw_hot for compatibillity
if ent:IsVehicle() or ent:IsOnFire() or ent.ArcCW_Hot or ent:IsScripted() and !ent:GetOwner():IsValid() and ent:EntIndex() > 0 then -- arccw_hot for compatibillity
return true
end

View File

@ -344,7 +344,8 @@ function SWEP:DoRTScope(model, atttbl, active)
if sd > 0.5 then render.SetToneMappingScaleLinear(vec1) end
rtsurf:SetTexture("$basetexture", rtmat)
rtsurf:SetFloat("$rot", self.ViewModelAng.z - sightzang)
rtsurf:SetFloat("$rot", ((atttbl.RTScopeShadowIntensity or 0) > 1 or atttbl.RTCollimator) and self.ViewModelAng.z - sightzang or 0)
-- rtsurf:SetMatrix("$basetexturetransform", Matrix({{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}))
-- model:SetSubMaterial()