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

Thread: How to change colors ingame?

  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
    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.

  5. #5
    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.

  6. #6
    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.

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

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

  9. #9
    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. #10
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Yeah I am not entirely sure about all other colors because I've never played around with it.

Posting Permissions

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