Results 1 to 5 of 5
  1. #1
    iamnada's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Indonesia
    Posts
    167
    Reputation
    10
    Thanks
    532
    My Mood
    Angelic

    Help about glow color

    someone can explain me about glow color please..
    i meant,
    Code:
                                if (Engine()->me.team == Player->team) {
                                    glowPlayer(mObj, 0, 0, alphaFriend);
                                } else if (inCrosshair(Player->id)) {
                                    glowPlayer(mObj, 0, alphaInX, 0);
                                } else {
                                    glowPlayer(mObj, alphaEnemy, 0, 0);
                                }
    the default color is blue and red, and become green when enemy shooted..

    if i want to change enemy color in bright yellow and when they got shooted in pink color (for example)..

    where i put it and how to get color code.. cause as i know its not hexadecimal and i cant find color generator in c++

    thankyou so much...
    Last edited by iamnada; 09-29-2015 at 10:05 PM.

  2. #2
    rwby's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    client.dll
    Posts
    1,631
    Reputation
    142
    Thanks
    6,724
    That would depend on where are your colors currently? You said they are default blue and red? Where are they defined at?

  3. #3
    legit_player's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    /root
    Posts
    313
    Reputation
    10
    Thanks
    2,784
    My Mood
    Cool
    You should have in source something like this:
    Code:
    /* GetTeamColor Function */
    GlowStruct GetTeamColor()
    {
    	/* If GlowTeamColor is not valid */
    	if (GlowTeamColor <= 0 || GlowTeamColor > 7)
    		/* Set the default color == red */
    		return CGreen;
    	/* If GlowTeamColor is valid, return the selected color from the array */
    	return GlowColors[GlowTeamColor - 1];
    }
    
    /* GetEnemyColor Function */
    GlowStruct GetEnemyColor()
    {
    	/* If GlowEnemyColor is not valid */
    	if (GlowEnemyColor <= 0 || GlowEnemyColor > 7)
    		/* Set the default color == red */
    		return CRed;
    	/* If GlowEnemyColor is valid, return the selected color from the array */
    	return GlowColors[GlowEnemyColor - 1];
    }
    Code:
    /* Defining Colors */
    GlowStruct CRed = { 0.4f, 0.f, 0.f, 1.f, true, false };
    GlowStruct CGreen = { 0.f, 0.4f, 0.f, 1.f, true, false };
    GlowStruct CBlue = { 0.f, 0.f, 0.4f, 1.f, true, false };
    GlowStruct CYellow = { 0.4f, 0.4f, 0.f, 1.f, true, false };
    GlowStruct COrange = { 1.f, 0.4666f, 0.f, 1.f, true, false };
    GlowStruct CPurple = { 0.3647f, 0.f, 1.f, 1.f, true, false };
    GlowStruct CWhite = { 1.f, 1.f, 1.f, 1.f, true, false };
    This is from inVincible V2 source.
    Last edited by legit_player; 09-30-2015 at 12:08 PM.

  4. The Following User Says Thank You to legit_player For This Useful Post:

    iamnada (09-30-2015)

  5. #4
    iamnada's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Indonesia
    Posts
    167
    Reputation
    10
    Thanks
    532
    My Mood
    Angelic
    Quote Originally Posted by legit_player View Post
    You should have in source something like this:
    Code:
    /* GetTeamColor Function */
    GlowStruct GetTeamColor()
    {
    	/* If GlowTeamColor is not valid */
    	if (GlowTeamColor <= 0 || GlowTeamColor > 7)
    		/* Set the default color == red */
    		return CGreen;
    	/* If GlowTeamColor is valid, return the selected color from the array */
    	return GlowColors[GlowTeamColor - 1];
    }
    
    /* GetEnemyColor Function */
    GlowStruct GetEnemyColor()
    {
    	/* If GlowEnemyColor is not valid */
    	if (GlowEnemyColor <= 0 || GlowEnemyColor > 7)
    		/* Set the default color == red */
    		return CRed;
    	/* If GlowEnemyColor is valid, return the selected color from the array */
    	return GlowColors[GlowEnemyColor - 1];
    }
    Code:
    /* Defining Colors */
    GlowStruct CRed = { 0.4f, 0.f, 0.f, 1.f, true, false };
    GlowStruct CGreen = { 0.f, 0.4f, 0.f, 1.f, true, false };
    GlowStruct CBlue = { 0.f, 0.f, 0.4f, 1.f, true, false };
    GlowStruct CYellow = { 0.4f, 0.4f, 0.f, 1.f, true, false };
    GlowStruct COrange = { 1.f, 0.4666f, 0.f, 1.f, true, false };
    GlowStruct CPurple = { 0.3647f, 0.f, 1.f, 1.f, true, false };
    GlowStruct CWhite = { 1.f, 1.f, 1.f, 1.f, true, false };
    This is from inVincible V2 source.
    Thankyou so much.. maybe this is what i looking for.. ill try later..
    By the way, do you know about that color structure?
    I meant, like this GlowStruct COrange = { 1.f, 0.4666f, 0.f, 1.f, true, false };
    the number on the list depend on what, which is it could be orange color..?
    If i want another color,it is possible?

  6. #5
    Quod bonum, faustum, fēlīx fortunātumque sit.
    MPGH Member
    pean153's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    FIT CTU
    Posts
    982
    Reputation
    174
    Thanks
    15,901
    My Mood
    Relaxed
    Quote Originally Posted by iamnada View Post
    someone can explain me about glow color please..
    i meant,
    Code:
                                if (Engine()->me.team == Player->team) {
                                    glowPlayer(mObj, 0, 0, alphaFriend);
                                } else if (inCrosshair(Player->id)) {
                                    glowPlayer(mObj, 0, alphaInX, 0);
                                } else {
                                    glowPlayer(mObj, alphaEnemy, 0, 0);
                                }
    the default color is blue and red, and become green when enemy shooted..

    if i want to change enemy color in bright yellow and when they got shooted in pink color (for example)..

    where i put it and how to get color code.. cause as i know its not hexadecimal and i cant find color generator in c++

    thankyou so much...
    pretty sure this is merccys glow, => glowPlayer(DWORD, R, G, B); rgb color model, alpha is predefined, so is bloom, render bools and fill bool

    Code:
     if (Engine()->me.team == Player->team) {
            //friendlies
                                    glowPlayer(mObj, 0, 0, alphaFriend);
                                } else if (inCrosshair(Player->id)) {
           //incross check
                                    glowPlayer(mObj, 0, alphaInX, 0);
                                } else {
           //enemy not incross
                                    glowPlayer(mObj, alphaEnemy, 0, 0);
                                }
    to change color, don't touch the first argument and just modify the other ones withing RGB model where maximum is 1.f ((int)value/255) and minimum obv. 0, csgo spectator default value is .6f
    Last edited by pean153; 10-01-2015 at 12:27 PM.

Similar Threads

  1. [Help Request] HELP ABOUT NEW RELEASE HACK
    By andryfero in forum Alliance of Valiant Arms (AVA) Help
    Replies: 3
    Last Post: 07-08-2012, 02:57 PM
  2. [Help Request] i need help about lta mode export of 3DS MAX 7 problem
    By kit132 in forum Combat Arms Mod Help
    Replies: 9
    Last Post: 06-26-2012, 09:00 AM
  3. [Help Request] Help About Project Blackout Account!
    By amlpz4 in forum Piercing Blow Help
    Replies: 7
    Last Post: 01-21-2012, 03:02 AM
  4. [Help Request] need help about Autoit command
    By xueyehan in forum Vindictus Help
    Replies: 3
    Last Post: 08-18-2011, 07:12 AM
  5. [Help Request] Need help, About CrossInjector.
    By CheatCreatorzz in forum CrossFire Help
    Replies: 5
    Last Post: 06-22-2011, 02:28 PM