SolvedHelp about glow color

Posts 1–5 of 5 · Page 1 of 1
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...
That would depend on where are your colors currently? You said they are default blue and red? Where are they defined at?
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.
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?
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
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us