• 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Code color crosshairs
#1
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-Prev...layer.html
[Image: acb072795e8b.gif]
  Reply
#2
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] );
}
-Made by momo5502
You could've opened the IWD and checks scripts/functions.gsc <_<
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#3
It's Fashion. Damn russian guy/translator.

@DidUknowiPwn - why using random colors ?... also like he knows what is gsc.
C++/Obj-C developer. Neko engine wip
Steam: Click
  Reply
#4
DidUknowiPwn, Thanks for the help
[Image: acb072795e8b.gif]
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help need help?how to make plugins code hXnarutoXone 12 7,646 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,083 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,764 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,765 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,137 07-28-2013, 01:52
Last Post: First_Semyon
  Mw3 Feed Color Change?? aluzion 5 5,366 07-16-2013, 19:52
Last Post: barata
  Code of vector Bloodfocus 1 2,183 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,049 04-20-2013, 15:06
Last Post: Nekochan
Photo Help color blue(display) [HARD] Tony. 2 2,390 04-06-2013, 14:16
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 3,758 04-05-2013, 18:15
Last Post: SuperNovaAO

Forum Jump:


Users browsing this thread: 1 Guest(s)