ItsMods

Full Version: How to change Damage Feedback Colours
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey

This is a very simple tutorial, but never seen this on any mod, is just for changing the colour of the icon when you hit someone, go into _damagefeedback.gsc, go into this thread and add what I put with THIS:

Code:
onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);

        player.hud_damagefeedback = newClientHudElem(player);
        player.hud_damagefeedback.horzAlign = "center";
        player.hud_damagefeedback.vertAlign = "middle";
        player.hud_damagefeedback.x = -12;
        player.hud_damagefeedback.y = -12;
        player.hud_damagefeedback.alpha = 0;
        player.hud_damagefeedback.archived = true;
        player.hud_damagefeedback.color = (1,0,0); //THIS
        player.hud_damagefeedback setShader("damage_feedback", 24, 48);
    }
}

Setup the colour there: remember that colours are done like this: (red, green, blue)

Also, you can change sound here, and the size too:

Code:
    else
    {
        self.hud_damagefeedback setShader("damage_feedback", 24, 48);
        self playlocalsound("MP_hit_alert"); //HERE
    }

Nyan Cat