Welcome,
Guest
. Please
login
or
register
.
May 13, 2025, 08:50:04 PM
News:
tastyspleen.net discord server:
http://discord.tastyspleen.net
Home
Forum
Help
TinyPortal
Search
Calendar
Login
Register
tastyspleen::quake 2 community
»
Forum
»
Quake Related Topics
»
Quake
(Moderator:
[BTF]DeathStalker
) »
Techy Bind Help: Setting Variable For Current Weapon's Ammo?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Techy Bind Help: Setting Variable For Current Weapon's Ammo? (Read 2679 times)
Juzam
Newbie
Posts: 2
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
»
Logged
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.
Logged
digency
Sr. Member
Posts: 290
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.
Logged
Juzam
Newbie
Posts: 2
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
Logged
[BTF] Reflex
Loquaciously Multiloquent Member
Posts: 5324
!
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.
Logged
Sometimes I think it’s a sin when I feel like I’m winnin’ when I’m losin’ again
naymlis
Swanky Member
Posts: 944
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
Logged
reaper
Opulent Member
Posts: 2872
Nice night for a walk, eh? - Nice night for a walk
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 : (((
Logged
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
Print
Pages: [
1
]
Go Up
« previous
next »
tastyspleen::quake 2 community
»
Forum
»
Quake Related Topics
»
Quake
(Moderator:
[BTF]DeathStalker
) »
Techy Bind Help: Setting Variable For Current Weapon's Ammo?
El Box de Shoutamente
Last 10 Shouts:
ImperiusDamian
May 12, 2025, 01:45:35 AM
Quake II is not 27 years old. I refuse to accept THAT much time has gone by.
|iR|Focalor
May 11, 2025, 02:33:39 PM
-Unh0ly-
May 03, 2025, 08:02:46 AM
198.179.6.200:30634
Yotematoi
May 02, 2025, 10:27:47 AM
Note for Player-4109 "Remember, the Guinness Book of Records does not include cowards who shot at someone by treachery."
-Unh0ly-
April 20, 2025, 09:52:16 AM
https://drive.google.com/file/d/1hKRIIKPk_G9TLPpY3B4ZIbVK_00Mbwfw/view?usp=sharing
|iR|Focalor
April 02, 2025, 02:47:07 AM
Yotematoi
February 14, 2025, 12:41:48 PM
|iR|Focalor
February 13, 2025, 07:31:24 AM
I was on DM this morning for the first time in a pretty long time. Seemed fine to me.
0rbisson
February 13, 2025, 04:54:21 AM
DM server is fucked. 2 point blank rockets from spawn and lava damage and player survived? WTF?" Also someone has fucked with the spawn points, every single time no matter how big the map you spawn right in front of the person who killed you last
rikwad
February 08, 2025, 10:48:18 PM
Seattle FFA now has working HTTP downloads. Thanks Unholy!
RIP Pepp ✟
Show 50 latest
User
Welcome,
Guest
. Please
login
or
register
.
May 13, 2025, 08:50:04 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search