Files
wnsrc/gamemodes/sandbox/entities/effects/camera_flash.lua
lifestorm 6a58f406b1 Upload
2024-08-04 23:54:45 +03:00

40 lines
678 B
Lua

--[[
| 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/
--]]
function EFFECT:Init( data )
local vOffset = data:GetOrigin()
local ent = data:GetEntity()
local dlight = DynamicLight( ent:EntIndex() )
if ( dlight ) then
dlight.Pos = vOffset
dlight.r = 255
dlight.g = 255
dlight.b = 255
dlight.Brightness = 10
dlight.Size = 512
dlight.DieTime = CurTime() + 0.02
dlight.Decay = 512
end
end
function EFFECT:Think()
return false
end
function EFFECT:Render()
end