• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial How to change Damage Feedback Colours
#1
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
[Image: veovuq.png]
[-] The following 1 user says Thank You to Yamato for this post:
  • d0h!
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 2,296 09-29-2013, 19:46
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 1,063 09-17-2013, 12:03
Last Post: E-losev
  Using Cheat Engine 6.2 to change BO2 address values wzlrsaur 6 4,561 08-06-2013, 06:28
Last Post: 14th
  Mw3 Feed Color Change?? aluzion 5 2,557 07-16-2013, 19:52
Last Post: barata
  Change death animation Keouf 3 1,470 07-05-2013, 18:39
Last Post: Nekochan
Question Help damage [HARD] Tony. 2 1,108 05-16-2013, 19:42
Last Post: Nekochan
Question Help change single file lzma maker to multiple in c# raminr63 1 1,333 05-12-2013, 19:31
Last Post: raminr63
Information How to change text messages in MP (.ff edit) giofrida 5 2,083 05-02-2013, 20:05
Last Post: Pozzuh
Its My Birthday! [Release] ServerConfigurator: Change your server settings easily JariZ 39 20,348 03-10-2013, 19:17
Last Post: wisamskay
  i want change mod to .iwd file ABDULMAILK 7 2,432 03-10-2013, 05:24
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread: 1 Guest(s)