So, I just made this today, it is a very basic hud based on eXtreme+ (only thing is, this is much more simple).
This is for displaying kill streak messages as images instead of strings with iprintlnBold.
I'm not sure if there are any errors, since it's the first hud I ever wrote, but it works fine.
I hope it helps anybody who's looking for help.
Do not forget to precache your shaders. Do it in Callback_StartGameType():
Code:
precacheShader("your_shader");
PHP Code:
displayShader(shader, size, duration, attacker)
{
shaderhud = newClientHudElem(attacker);
shaderhud.vertAlign = "subtop";
shaderhud.horzAlign = "center";
shaderhud.x = size*(-0.5);
shaderhud.y = size*(0.5);
shaderhud.alpha = 0;
shaderhud setShader(shader, size, size);
shaderhud.alpha = 1;
wait(duration);
shaderhud fadeOverTime(1);
shaderhud.alpha = 0;
wait(1);
shaderhud destroy();
}
Where, naturally, shader is the name of your shader (string), size is the size, duration is the duration before it starts to fade and attacker is the player receiving the new hud.
added info that was here to first post - izno