1. Post #1
    Gold Member
    Impulse101's Avatar
    January 2009
    1,458 Posts
    Well I have been searching everywhere but I can't seem to find an addon that automatically enables some kind of near death effect (blurry screen, view slowly turns black and white, etc) when the player has low health. Anyone know where I can find one?

  2. Post #2
    Virus78's Avatar
    July 2009
    47 Posts
    you could do this yourself but im trying to learn Lua so i guess i can give this a shot
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Bad Reading Bad Reading x 1 (list)

  3. Post #3
    Gold Member
    Impulse101's Avatar
    January 2009
    1,458 Posts
    That would be great, but still, anyone who knows any near death effect addon please tell.

  4. Post #4

    July 2008
    22 Posts
    try this, I haven't tested it, and never used some of these functions so look out for errors :P.

    var_NearDeath = 0
    
    local function ComeAgains()
    	if localPlayer:Health() <= 25 then
    		var_NearDeath = 0
    	else
    		var_NearDeath = 1
    	end
    end
    
    local function PostProcessing()
    	local EleToGo = {"bloom"}
    	if( !var_NearDeath ) then
    		return table.HasValue(EleToGo, element)
    	else
    		return false
    	end
    end
    
    hook.Add( "PostProcessPermitted", PostProcessing )
    hook.Add( "Think", ComeAgains )

    Should make your screen blurry when ur lower than 25 health...