Author Topic: Techy Bind Help: Setting Variable For Current Weapon's Ammo?  (Read 2511 times)

Offline Juzam

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • devART
  • Rated:
Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« on: March 20, 2006, 08:36:18 AM »
I'm trying to do the following..

Bind e.g. F2 to "say_team NEED SLUGS" or "say_team NEED ROCKETS" etc, depending on which weapon I'm using.

At least in Quake 2's Battle mode, I can use the identifier %w to return the weapon I'm using. For example, I can do "say_team NEED Ammo for %w", which would result in e.g. "NEED Ammo for Shotgun".

I can also set variables, e.g. set a_Shotgun SHELLS, so when I type "say_team NEED $a_Shotgun", I would get "NEED SHELLS".

So the variable I'm trying to set is a_%w, but that's the problem. How can I evaluate the %w inside a variable?

Suppose I have a_Shotgun set to "SHELLS" and I'm using Shotgun. Using say_team NEED $a_%w is not working. What to do?

edit: typo
« Last Edit: March 20, 2006, 09:23:20 AM by Juzam »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Ghost9

  • Guest
Re: Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« Reply #1 on: March 20, 2006, 09:28:33 AM »
I didn't even know that much.  Hopefully someone knows how to do it because I'll probably add it to my config.  I'm always in need of slugs, rox, or bullets.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline digency

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
  • Rated:
Re: Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« Reply #2 on: March 20, 2006, 10:47:06 AM »
This is easy.

You've got to think outside the box, look at it this way. Instead of using %W to get the variable just do it manually.

IF your using the E key to switch to RL add it into there.

Bind e "use Rocket launcher; set AMMO "ROCKETS"
bind x "use Railgun; set AMMO "SLUGS"
bind z "use Super Shotgun"; set AMMO "SHELLS"

bind F2 "Need $AMMO" (or whatever the variable command is)

So whenever you switch weapons, your ammo variable will change according to which weapon your using.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Juzam

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • devART
  • Rated:
Re: Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« Reply #3 on: March 20, 2006, 10:52:02 AM »
digency: I had that in mind, but when you use a blaster and pick up a weapon, you automatically /use that weapon. Using %w is also necessary since the weapon changes automatically when you run out of ammo and try to shoot.

[vA]Ghost9: Yeah, this would be a nice bind. Asking for ammo is relatively easy in Ventrilo, but it's only used in clan wars. One button for asking for whatever ammo would be great. :) Feel free to check out my current configs, http://skene.arenanet.fi/ttnm/download/cfg-juzam.zip
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [BTF] Reflex

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5324
  • !
    • View Profile
  • Rated:
Re: Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« Reply #4 on: March 20, 2006, 12:04:47 PM »
evn though you switch automaticly to it when you have blaster,  I find I still hit the key for it when I pick it up.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Sometimes I think it’s a sin when I feel like I’m winnin’ when I’m losin’ again

Offline naymlis

  • Swanky Member
  • *****
  • Posts: 944
    • View Profile
  • Rated:
Re: Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« Reply #5 on: March 20, 2006, 12:08:56 PM »
i think digency's suggestion is the only way to do this.. just make sure you press the weapon bind to the weapon it switches to automatically
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline reaper

  • Opulent Member
  • *
  • Posts: 2872
  • Nice night for a walk, eh? - Nice night for a walk
    • View Profile
  • Rated:
Re: Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« Reply #6 on: March 21, 2006, 04:35:47 AM »
anyway to use the capslock keys in q2. maybe changing a windows settings
such a nice key on the keyboard : (((
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
VaeVictus "reaper is a lying sack of shit and ragequit then had, probably slugs, come alias and beat me, wasnt even the same person playing OBVIOUSLY, accuracies basicly doubled, and strategy

 

El Box de Shoutamente

Last 10 Shouts:

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 22, 2024, 04:53:33 PM

Login with username, password and session length