Forums » General

Toggles!

Jul 16, 2003 genka link
Once upon a time, blah-blah-blah, yadda-yadda-yadda, other random crap I like to put into my posts.

Now that thats out of the way, here's a few lines of... um... code? You would need to make a toggling button for things which don't have a toggle like autoaim, rglow, turbo, other crap.

/alias aimoff "set autoaim 0; alias aimtoggle aimon"
/alias aimon "set autoaim 1; alias aimtoggle aimoff"
/alias aimtoggle aimon
/bind "key" aimtoggle

I used autoaim as the variable here. There ya go, don't kill me if someone already posted this please :D

~[syn]n00b
join the syndicate!
Jul 17, 2003 randomize link
if you are so smart, make a script that turns Physics mode ON and OFF (not toggle, separate keys for Arcade and Physics mode)
Jul 17, 2003 Suicidal Lemming link
alias phys-on "echo 'Flight Mode is already set to Physics!'"
alias phys-off "flymodetoggle ; echo 'Flight mode set to Physics' ; bind [ phys-on ; bind ] arca-off"
alias arca-off "flymodetoggle ; echo 'Flight mode set to Arcade' ; bind ] arca-on ; bind [ phys-off"
alias arca-on "flymodetoggle ; echo 'Flight mode is already set to Arcade!'"
alias select-mode "echo 'Type /arca if Arcade mode is currently on' 'Type /phys if Physics mode is currently on'"
alias arca "bind ] arca-on ; bind [ phys-off ; echo 'Intialized'"
alias phys "bind ] arca-off ; bind [ phys-on ; echo 'Intialized'"

When you are in game type /select-mode and follow the mind-numingly easy instructions!

It should work correctly if you typed /arca when it was in fact on arcade or /phys when it was in fact on physics, if it is messed up just run /select-mode again.
Jul 17, 2003 randomize link
that's cheating and cannot be considered solution.
type this type that, this is computers ffs, they should know better.
hardly more useful than having single toggle button.
Jul 17, 2003 genka link
me is saddened because he wasn't awake when SL beat him to the thing...
Jul 17, 2003 Suicidal Lemming link
randomize, you only need to set it once unless you change the binds in your wgaf file, it's not cheating, it's a solution.

Once the bind is set up correctly, [ turns physics on, ] turns arcade on.

Genka, yah, well, i normally don't stay up till 3:35 am.
Jul 17, 2003 raybondo link
Heh you guys are silly.

Arcade-mode and Physics-mode are controlled by the flymodeflag value.
Setting it to 1 is arcademode and setting it to 0 is physicsmode.
Jul 17, 2003 genka link
nifty!

/me goes to try to set flymodeflag to 2
Jul 17, 2003 Suicidal Lemming link
SL cries.
Jul 17, 2003 randomize link
raybondo, thank you very much!!!
SuicideLemming - IN YOUR FACE!!! :)
Jul 17, 2003 Suicidal Lemming link
Hey, I DIDN'T make the game so i DON'T know whats used for stuff.
Jul 17, 2003 genka link
/set flymodeflag 2 seems to set it to 1
too bad
/me goes to find a replacement "jumbo red LED" for the one he burned out on his picpro
Jul 17, 2003 Suicidal Lemming link
try /set flymodeflag 0
rglow uses 0 for off and 1 for on (gee, i wonder where i heard that before)