Results 1 to 14 of 14
  1. #1
    yuitti1114's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    4

    Change the color of ESP

    I'm using the Merccy's Glow ESP.
    Merccy2, Thank you.

    I wanted to change the color of ESP.
    So, I edited some parts of the source.
    Like this,
    Code:
    int r = 255, g = 0, b = 0;
    When I changed 255 to other number, it could compile, but didn't apply.
    I could use only 255.
    For example,
    Code:
    int r = 0, g = 255, b = 0;
    I cannot use other than 255?
    Does anyone have an idea?

  2. #2
    Epik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    1,144
    Reputation
    263
    Thanks
    12,120
    My Mood
    Amused
    255 is the maximum 8-bit value. There are 256 values in total, starting from 0 to 255.

  3. #3
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    You can use any value between 0 and 255
    If you have any questions regarding my hacks, add me on Discord: Merccy#8314

  4. #4
    Epik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    1,144
    Reputation
    263
    Thanks
    12,120
    My Mood
    Amused
    Quote Originally Posted by Merccy2 View Post
    You can use any value between 0 and 255
    You mean from 0 and to 255. Right?

  5. #5
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    Quote Originally Posted by Epik-chan View Post


    You mean from 0 and to 255. Right?
    yes I do //2short5me
    If you have any questions regarding my hacks, add me on Discord: Merccy#8314

  6. #6
    yuitti1114's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by Merccy2 View Post
    You can use any value between 0 and 255
    Thank you.
    So, I changed to like this...
    Code:
    int r = 218, g = 165, b = 32;
    But it didn't glow.
    I could use only 255 or 0.
    Code:
    r = 255, g = 0, b = 0;
    r = 0, g = 255, b = 0;
    r = 0, g = 0, b = 255;
    Can you use other numbers?

  7. #7
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    Quote Originally Posted by yuitti1114 View Post
    Thank you.
    So, I changed to like this...
    Code:
    int r = 218, g = 165, b = 32;
    But it didn't glow.
    I could use only 255 or 0.
    Code:
    r = 255, g = 0, b = 0;
    r = 0, g = 255, b = 0;
    r = 0, g = 0, b = 255;
    Can you use other numbers?
    You should be able to but I haven't tested that.
    If you have any questions regarding my hacks, add me on Discord: Merccy#8314

  8. #8
    yuitti1114's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    4
    I've tried whether can be changed in the source of Zat's simple internal.
    Code:
    glowObjects[glowIdx].a = 0.9f;
    glowObjects[glowIdx].r = 0.0f;
    glowObjects[glowIdx].g = 0.0f;
    glowObjects[glowIdx].b = 0.0f;
    if (lEngine.GetEntityTeam(player) == 2) //T
    {
    	glowObjects[glowIdx].r = 0.94f;
    	glowObjects[glowIdx].g = 0.90f;
    	glowObjects[glowIdx].b = 0.55f;
    }
    	else //CT
    {
    	glowObjects[glowIdx].r = 0.27f;
    	glowObjects[glowIdx].g = 0.51f;
    	glowObjects[glowIdx].b = 0.71f;
    }
    In this way, I could change the color.

    I think that the reason why it glowed in Zat's but it wasn't glowed in Merccy's is a difference of Glow offsets and patterns.
    Zat is using the "GlowObjectBase" and "Ent_GlowIndex" but Merccy is using "Glow offset" only.

    How I change the color in Merccy's source code?

  9. #9
    Steavix's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Location
    I dont give a vouch.
    Posts
    208
    Reputation
    10
    Thanks
    513
    My Mood
    Amazed
    Quote Originally Posted by yuitti1114 View Post
    I've tried whether can be changed in the source of Zat's simple internal.
    Code:
    glowObjects[glowIdx].a = 0.9f;
    glowObjects[glowIdx].r = 0.0f;
    glowObjects[glowIdx].g = 0.0f;
    glowObjects[glowIdx].b = 0.0f;
    if (lEngine.GetEntityTeam(player) == 2) //T
    {
    	glowObjects[glowIdx].r = 0.94f;
    	glowObjects[glowIdx].g = 0.90f;
    	glowObjects[glowIdx].b = 0.55f;
    }
    	else //CT
    {
    	glowObjects[glowIdx].r = 0.27f;
    	glowObjects[glowIdx].g = 0.51f;
    	glowObjects[glowIdx].b = 0.71f;
    }
    In this way, I could change the color.

    I think that the reason why it glowed in Zat's but it wasn't glowed in Merccy's is a difference of Glow offsets and patterns.
    Zat is using the "GlowObjectBase" and "Ent_GlowIndex" but Merccy is using "Glow offset" only.

    How I change the color in Merccy's source code?
    Try paste that into Mercyy DxD

  10. #10
    onlyblame's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    3
    My Mood
    Happy
    The max Value of RGB in that case is 1 1 1 not 255 255 255, so adjust it like that

  11. #11
    yuitti1114's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by onlyblame View Post
    The max Value of RGB in that case is 1 1 1 not 255 255 255, so adjust it like that
    Yeah, I knew Color4B and Color4F.
    So I converted Color4B to Color4F, but it didn't glow.

    Can you change the color that way?

  12. #12
    onlyblame's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    3
    My Mood
    Happy
    Quote Originally Posted by yuitti1114 View Post
    Yeah, I knew Color4B and Color4F.
    So I converted Color4B to Color4F, but it didn't glow.

    Can you change the color that way?
    i used it like that:
    (it must be float values)

    T:
    r = 1;
    g = 0;
    b = 0;

    CT:
    r = 0;
    g = 0;
    b = 1;

  13. #13
    yuitti1114's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by onlyblame View Post
    i used it like that:
    (it must be float values)

    T:
    r = 1;
    g = 0;
    b = 0;

    CT:
    r = 0;
    g = 0;
    b = 1;
    I can also use it, but I want to use like this.
    Code:
    T:
    r = 0.94f;
    g = 0.90f;
    b = 0.55f;
    
    CT:
    r = 0.27f;
    g = 0.51f;
    b = 0.71f;

  14. #14
    onlyblame's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    3
    My Mood
    Happy
    Quote Originally Posted by yuitti1114 View Post
    I can also use it, but I want to use like this.
    Code:
    T:
    r = 0.94f;
    g = 0.90f;
    b = 0.55f;
    
    CT:
    r = 0.27f;
    g = 0.51f;
    b = 0.71f;
    This should also work..
    Changed my Colors and it works ^^
    Here is a list of the colors: Link

Similar Threads

  1. How to change the color of your knife Crosshair
    By CharlieSheen in forum Combat Arms Mod Tutorials
    Replies: 12
    Last Post: 08-21-2011, 12:19 PM
  2. change the color to the body???plz one mod
    By JOCam in forum Combat Arms Help
    Replies: 1
    Last Post: 12-05-2009, 07:39 PM
  3. Change the colors of your chams
    By Synns in forum Combat Arms Hacks & Cheats
    Replies: 17
    Last Post: 10-13-2008, 06:46 PM
  4. How Do I Change the Color of My Enemy CHAMS?
    By DarkSoda in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-11-2008, 01:06 PM
  5. How To Change The Color On Command Prompt
    By mostwanted in forum Programming Tutorials
    Replies: 2
    Last Post: 07-21-2008, 06:43 AM