Reduced pp effects on ZombieVision, making it clearer.

-Light no longer looks like it's source is far from the player.
-The visible distance is greatly increased.
-The sound effect has been changed from reverb to a minor deadening one.
This commit is contained in:
Ben 2015-02-08 22:38:21 +00:00
parent 9c13ad1eeb
commit 74a9be8ea6
2 changed files with 6 additions and 6 deletions

View file

@ -469,12 +469,12 @@ function GM:PostRender()
local dlight = DynamicLight(MySelf:EntIndex()) local dlight = DynamicLight(MySelf:EntIndex())
if dlight then if dlight then
dlight.Pos = tr.HitPos + tr.HitNormal * 2 dlight.Pos = MySelf:GetShootPos()
dlight.r = 10 dlight.r = 10
dlight.g = 255 dlight.g = 255
dlight.b = 80 dlight.b = 80
dlight.Brightness = 3 dlight.Brightness = 0.5
dlight.Size = 300 dlight.Size = 2048
dlight.Decay = 900 dlight.Decay = 900
dlight.DieTime = CurTime() + 1 dlight.DieTime = CurTime() + 1
end end

View file

@ -138,7 +138,7 @@ function GM:_RenderScreenspaceEffects()
DrawSharpen(1, math_min(6, self.HurtEffect * 3)) DrawSharpen(1, math_min(6, self.HurtEffect * 3))
end end
if MySelf:Team() == TEAM_UNDEAD and self.m_ZombieVision and not matTankGlass:IsError() then --[[if MySelf:Team() == TEAM_UNDEAD and self.m_ZombieVision and not matTankGlass:IsError() then
render_UpdateScreenEffectTexture() render_UpdateScreenEffectTexture()
matTankGlass:SetFloat("$envmap", 0) matTankGlass:SetFloat("$envmap", 0)
matTankGlass:SetFloat("$envmaptint", 0) matTankGlass:SetFloat("$envmaptint", 0)
@ -146,7 +146,7 @@ function GM:_RenderScreenspaceEffects()
matTankGlass:SetInt("$ignorez", 1) matTankGlass:SetInt("$ignorez", 1)
render_SetMaterial(matTankGlass) render_SetMaterial(matTankGlass)
render_DrawScreenQuad() render_DrawScreenQuad()
end end]]
if self.ColorModEnabled then if self.ColorModEnabled then
if not MySelf:Alive() and MySelf:GetObserverMode() ~= OBS_MODE_CHASE then if not MySelf:Alive() and MySelf:GetObserverMode() ~= OBS_MODE_CHASE then
@ -243,7 +243,7 @@ function GM:ToggleZombieVision(onoff)
if not self.m_ZombieVision then if not self.m_ZombieVision then
self.m_ZombieVision = true self.m_ZombieVision = true
MySelf:EmitSound("npc/stalker/breathing3.wav", 0, 230) MySelf:EmitSound("npc/stalker/breathing3.wav", 0, 230)
MySelf:SetDSP(5) MySelf:SetDSP(30)
end end
elseif self.m_ZombieVision then elseif self.m_ZombieVision then
self.m_ZombieVision = nil self.m_ZombieVision = nil