Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: How to change colors ingame?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts

    How to change colors ingame?

    Hello.. i want use some color like IzNo's plusscore..

    Is it possible to add that at white color? i want when i make hud :^7Kills to it have that color like IzNo's plusscore..

    Thanks

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    You can achive white color with rgb values: rgb(255, 255, 255)

  3. #3
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    where is that rgb?

    Omg.. aha.. can i change that color to it stay with script? i need that
    Last edited by Rocky; 5th April 2014 at 14:12.

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Rocky View Post
    where is that rgb?

    Omg.. aha.. can i change that color to it stay with script? i need that
    RGB is Red Green Blue. Use this site to find out the value you need:
    http://www.rapidtables.com/web/color/RGB_Color.htm

    Last edited by Mitch; 5th April 2014 at 15:25.

  5. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (5th April 2014),Rocky (5th April 2014)

  6. #5
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    For hud element you can just do "self.hudkills.color = (1,1,1);"

    To get the value of the color you need to divide 1 by 255 and then multiply by the rgb values of the color so rgb(255,255,255) equals (1,1,1) in cod.
    Last edited by YuriJurek; 5th April 2014 at 14:38.

  7. #6
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    i know.. but how to change for all ingame? to white is changed to other color.

  8. #7
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    setCvar("g_TeamColor_Allies", "1 1 1");
    setCvar("g_TeamColor_Axis", "1 1 1");

    Same rules apply.

    Edit: You can not change the default ^7 colour as far as I know, only ^8.
    Last edited by YuriJurek; 5th April 2014 at 14:43.

  9. #8
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by YuriJurek View Post
    Edit: You can not change the default ^7 colour as far as I know, only ^8.
    I managed to accidentally change the color of ^9 with a bug I had in my mod. Not sure how I changed the color, I haven't investigated it, but it had something to do with _scoreboard.gsc.

  10. #9
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    put that at start?

  11. #10
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    sec.. how to change ^8?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •