Auto changing color crosshair

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Sun May 11, 2008 12:47 pm

Sun May 11, 2008 3:09 pm

  • Errr and what's the final "else" ?

    Can be done with blub's VM.
    User avatar
    Mr. Bougo
    Keyboard killer
     
    Posts: 760
    Joined: Mon Sep 10, 2007 3:29 pm

Mon May 12, 2008 12:16 pm

Mon May 12, 2008 1:14 pm

  • *HxC*Cuizinier wrote:
    Mr. Bougo wrote:Errr and what's the final "else" ?

    Can be done with blub's VM.


    In fact, I just want the color change each shoot.
    Whats blub's VM ?


    Each shot is hard, but each click works :)
    -.- uni's screwing with the servers, so I can't give you any links to the VM cfgs
    User avatar
    Blµb
    Alien trapper
     
    Posts: 277
    Joined: Thu Mar 29, 2007 1:49 pm

Tue May 13, 2008 8:39 am

Tue May 13, 2008 9:52 am

  • I guess your script could be:

    Code: Select all
    set fire1 "YOUR SHOOT KEY" // This is the key you shoot with

    //Default Starting
    set type "green"
    set color "1"
    bind $fire1 "$type$color"

    // The bones of the script
    alias green "set type green ; set color 1 ; set green 1; green$green ; bind $fire1 $type$color"
    alias green1 "crosshair_color_green"
    alias green0 "crosshair_color_white; " // Default crosshair color... Doesn't have to be any

    alias red "set type red ; set color 1 ; set green 1; red$red; bind $fire1 $type$color"
    alias red1 "crosshair_color_red"
    alias red0 "crosshair_color_white; " // Default crosshair color... Doesn't have to be any


    I haven't tested this, so it may not work.

    Or:
    Without a click or anything:
    you can use a defer.

    http://forums.alientrap.local/viewtopic.php?p=33943#33943
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Tue May 13, 2008 11:35 am

Tue May 13, 2008 11:46 am

Tue May 13, 2008 5:57 pm

Fri May 16, 2008 6:30 am

  • What did you type in for $fire?

    Try:
    Code: Select all
    bind mouse1 "$type$color"
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Fri May 16, 2008 1:50 pm

  • shaggy wrote:What did you type in for $fire?

    Try:
    Code: Select all
    bind mouse1 "$type$color"

    You can't use "color" as a cvar name, since there's already a command with that name.
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Sat May 17, 2008 4:48 am

  • Oh, that would be why.

    Change that var to c.color (crosshair color)
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am



Return to Nexuiz - General Discussion




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest