Welcome,
Guest
. Please
login
or
register
.
September 20, 2024, 07:49:15 PM
News:
tastyspleen.net has a new 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 2452 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:
RyU
September 03, 2024, 05:15:49 PM
And wow Derrick is still playing lol
RyU
September 03, 2024, 05:15:15 PM
Just know yesterday is gone and soon tomorrow will be gone too
Lejionator
August 08, 2024, 07:28:01 PM
It's tiem to QuakeCon!!!
https://www.youtube.com/watch?v=ThQd_UJaTys
ImperiusDamian
July 26, 2024, 09:34:53 PM
In nomine Quake II et Id Software et Spiritus John Carmack, Amen.
QuakeDuke
July 26, 2024, 05:10:30 PM
Hey, shout, summertime blues
Jump up and down in you blue suede shoes
Hey, did you rock and roll? Rock on!! ...QD
Yotematoi
July 24, 2024, 01:31:20 PM
Ayer me mato 5 veces para robarme en la vida real hará lo mismo? [img]<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid0wXU2VgS7atesBcSoMz5BWMJCJajeZFVT6GzSU6TtpJGddN9kLTvWNgcZaskkbKFQl&show_text=true&width=500
https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid0wXU2VgS7atesBcSoMz5BWMJCJajeZFVT6GzSU6TtpJGddN9kLTvWNgcZaskkbKFQl&show_text=true&width=500
" width="500"
Yotematoi
July 24, 2024, 01:25:59 PM
hi ya está la basura de Martin, se cambió el nombre es un ladron estupido, asi llegó a 10000[img]<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&show_text
https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&show_text
Yotematoi
July 24, 2024, 01:25:59 PM
hi ya está la basura de Martin, se cambió el nombre es un ladron estupido, asi llegó a 10000[img]<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&show_text
https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&show_text
[BTF]Jehar
July 19, 2024, 04:28:08 PM
http://forum.tastyspleen.net/quake/index.php?topic=23579.msg238738#msg238738
ts500 comin!
-Unh0ly-
July 05, 2024, 05:20:36 AM
https://unh0lyquakeii.godaddysites.com/
[/i]
Show 50 latest
User
Welcome,
Guest
. Please
login
or
register
.
September 20, 2024, 07:49:15 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search