![]() |
|
Help Code color crosshairs - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Code color crosshairs (/Thread-Help-Code-color-crosshairs.html) |
Code color crosshairs - koren30 - 10-02-2013 I apologize for my English, I write through Google translator. I need to color code the crosshairs of fashion AIZombies eXtreme 2.0 he can not find it ((( http://www.itsmods.com/forum/Thread-Preview-AIZombies-eXtreme-2-0-Zombie-Player-Music-Player.html RE: Code color crosshairs - DidUknowiPwn - 10-02-2013 It's just a random number between 0-1 for each color :c Anyway to not override the original GSC this is what'll you do Code: onPlayerConnect()
{
self endon("disconnect");
for(;;)
{
level waittill( "connected", player);
player thread hitmarkerColor();
}
}
hitmarkerColor()
{
while ( true )
{
while( !isDefined( self.hud_damagefeedback ) )
{
wait 0.5;
}
self.hud_damagefeedback.color = getGoodColor();
wait 0.5;
}
}
getGoodColor()
{
color = []; //Array as Vector3
for( i=0;i<3;i++)
{
color[i] = randomint( 2 );
}
if( color[0] == color[1] && color[1] == color[2] )
{
rand = randomint(3);
color[rand] += 1;
color[rand] %= 2;
}
return ( color[0], color[1], color[2] );
}You could've opened the IWD and checks scripts/functions.gsc <_< RE: Code color crosshairs - Nekochan - 10-02-2013 It's Fashion. Damn russian guy/translator. @DidUknowiPwn - why using random colors ?... also like he knows what is gsc. RE: Code color crosshairs - koren30 - 10-02-2013 DidUknowiPwn, Thanks for the help |