That would depend on where are your colors currently? You said they are default blue and red? Where are they defined at?
someone can explain me about glow color please..
i meant,
the default color is blue and red, and become green when enemy shooted..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); }
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.
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]; }This is from inVincible V2 source.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 };
Last edited by legit_player; 09-30-2015 at 12:08 PM.
iamnada (09-30-2015)
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?
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
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 .6fCode: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); }
Last edited by pean153; 10-01-2015 at 12:27 PM.