Urban Terror Forums: Help -- toggle <variable> or cycle nvg goggle color - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Help -- toggle <variable> or cycle nvg goggle color Rate Topic: -----

#1 Guest_Psyche911

Posted 16 May 2004 - 06:10 AM

I've been having some fun with NVG and it's new colors in 3.5. I'm trying to figure out a way to bind a key to cycle through the colors. If possible...

Some maps just work better with different colors, and I thought it'd be nice to just hit a key a few times rather than bringing down the console and typing the command until I get the right color (since I'll never rememeber which is which :P ). Any thoughts on this?

While trying to figure it out, I came across the toggle command in console, but I don't know what it's for. Anybody know? If I bind a key to it then press it, it says
Usage: toggle <variable>

Thanks.

#2 User is offline   Mav (old) Icon

  • Joined: 11-February 04
  • Posts: 430
  • LocationGreenwood, Nova Scotia, Canada

Posted 16 May 2004 - 06:18 AM

In order to do a ccyle thru the colors you'll have to use a script. Not sure if Nologic still kicking around and making them.

#3 User is offline   Nologic (old) Icon

  • Joined: 07-February 04
  • Posts: 139
  • LocationSeattle, Washington USA

Posted 16 May 2004 - 07:59 AM

Yeah I'm still kicking it...sort of. :)

Haven't gotten the new build yet...downloading now...I'll update the script once I do...but for now here you go..edit it as needed. :)


set nvg_01 "set nvg vstr nvg_02; cg_nvg 0; ut_echo Heh some color"
set nvg_02 "set nvg vstr nvg_03; cg_nvg 1; ut_echo Heh some color"
set nvg_03 "set nvg vstr nvg_04; cg_nvg 2; ut_echo Heh some color"
set nvg_04 "set nvg vstr nvg_05; cg_nvg 3; ut_echo Heh some color"
set nvg_05 "set nvg vstr nvg_06; cg_nvg 4; ut_echo Heh some color"
set nvg_06 "set nvg vstr nvg_07; cg_nvg 5; ut_echo Heh some color"
set nvg_07 "set nvg vstr nvg_08; cg_nvg 6; ut_echo Heh some color"
set nvg_08 "set nvg vstr nvg_01; cg_nvg 7; ut_echo Heh some color"
vstr nvg_01 // Default

bind x "vstr nvg" // Toggle NVG Colors

#4 Guest_Psyche911

Posted 16 May 2004 - 08:48 AM

Thanks Nologic. I guess I'll figure out how scripts work then. lol
I've gotten along for a long time without any.

#5 User is offline   Kennypumpa (old) Icon

  • Joined: 19-February 04
  • Posts: 451
  • LocationNorrkoping, Sweden

Posted 16 May 2004 - 12:11 PM

Try this, works fine, with "built in" gamma and X-HairColor toggle.

http://hem.bredband..../nvg_script.cfg

bullet_loaderAdvertisement

#6 User is offline   LegoManser (old) Icon

  • Lurking bastard
  • Joined: 16-February 04
  • Posts: 907
  • LocationDenmark

Posted 16 May 2004 - 02:49 PM

Nice one Nologic :) I added the colors.
Nologic's script with the right colors and the next color:

set nvg_01 "set nvg vstr nvg_02; cg_nvg 0; ut_echo NVG: Green (Red)"
set nvg_02 "set nvg vstr nvg_03; cg_nvg 1; ut_echo NVG: Red (Blue)"
set nvg_03 "set nvg vstr nvg_04; cg_nvg 2; ut_echo NVG: Blue (Yellow)"
set nvg_04 "set nvg vstr nvg_05; cg_nvg 3; ut_echo NVG: Yellow (Cyan)"
set nvg_05 "set nvg vstr nvg_06; cg_nvg 4; ut_echo NVG: Cyan (Purple)"
set nvg_06 "set nvg vstr nvg_07; cg_nvg 5; ut_echo NVG: Purple (Pink)"
set nvg_07 "set nvg vstr nvg_08; cg_nvg 6; ut_echo NVG: Pink (Orange)"
set nvg_08 "set nvg vstr nvg_01; cg_nvg 7; ut_echo NVG: Orange (Green)"
vstr nvg_01 // Default

bind x "vstr nvg" // Toggle NVG Colors (Next color)

#7 Guest_Annihilator

Posted 16 May 2004 - 06:09 PM

Nice work on the script.

#8 Guest_Psyche911

Posted 16 May 2004 - 06:25 PM

Yep. Thanks everyone. Got some help from Taco on #urbanterror, since I'd never used a script before and didn't know what to do with the above info. lol

#9 User is offline   Nologic (old) Icon

  • Joined: 07-February 04
  • Posts: 139
  • LocationSeattle, Washington USA

Posted 16 May 2004 - 07:01 PM

Ah it is nice to see the community pitching in.

Good work every one, and I'm sure these will help out a lot of players. :)

#10 User is offline   Mav (old) Icon

  • Joined: 11-February 04
  • Posts: 430
  • LocationGreenwood, Nova Scotia, Canada

Posted 16 May 2004 - 11:02 PM

Wow he does live, phew.. Went on a huge limb there suggesting Nolgics name, been a while since I've seen him on a server.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942