Script which will reveal blue screen (e.g. block.bmp - blue) for a moment on the player screen when he killed someone player.
after this, blue screen should then slowly disappear untill moment in which block.bmp full vanish/die.
Scripts
Screen after killing
Screen after killing
1

image with mode as HUD image
kill hook and in the function attached to it:
tween_alpha to bring it back to 0
imagealpha with a time hook to reduce alpha "manually".parse("mp_hudscale 1")
timeToFade = 1000 --1000 = 1 second.
screenColour = {0, 0, 0}
--To make sure the given ID be a number since timers do give output as string far as I remember
_freeimage = freeimage
function freeimage(id)
tonumber(id)
_freeimage(id)
end
addhook("kill", "_kill")
function _kill(killer)
local blueScreen = image("gfx/block.bmp", 425, 240, 2, id)
imagecolor(blueScreen, unpack(screenColour))
imagescale(blueScreen, 27, 15)
tween_alpha(blueScreen, timeToFade, 0)
timer(timeToFade, "freeimage", blueScreen)
end
timeToFadeor
screenColourvariables for your own taste.
function _kill(killer,id)
, but i mean to blue screen reveal only for player which kill other player. function _kill(id)
Bowlinghead has written
1
