RSS Feed

Randomised binding responses

#  Sep 15, 2009 at 11:22 PM
Join Date:
Jun 02, 2008
Post Count:
1688
 
Numenor 85325
Loading...
Specialty: Engineer
Steam ID: Numenor
Clan: {TF2F}
SquigMember
 
What I mean is this-

putting down bind "mouse5" "say_team I AM FULLY CHARGED" will do just that, or
                   bind "mouse4" "voicemenu 2 1"

But, is there a way of setting up binds so that when you hit the key, it picks one of the responses? So say pressing mouse 4 would either produce the negative or positive voice command, or likewise with differing text binds?

Thanks
#  Sep 15, 2009 at 11:54 PM
Join Date:
Aug 03, 2009
Post Count:
95
 
Nime 91538
Loading...
Specialty: Scout
 
Afaik, there is no way to randomize anything in TF2 scripting, other than the spy disguise.

You could write something that would say one response the first time you pressed it, and the other response the second time. It wouldn't be random, but it would add some variety.

alias randResp "resp1"
alias resp1 "say_team I AM FULLY CHARGED; alias randResp resp2"
alias resp2 "say_team I HAVE UBER! PUSH!; alias randResp resp1"

bind ' "randResp"

So it would say I AM FULLY CHARGED when you pressed it once, then I HAVE UBER! PUSH! the second time, I AM FULLY CHARGED the third, etc.

It's not really what you asked for, but if not I can try to help more. I'm not great at scripting myself, and to my knowledge you can't randomize like you asked although someone may prove me wrong.
#  Sep 16, 2009 at 12:22 AM
Join Date:
Jun 02, 2008
Post Count:
1688
 
Numenor 85325
Loading...
Specialty: Engineer
Steam ID: Numenor
Clan: {TF2F}
SquigMember
 
Quote:
Originally Posted by Nime
-snip-

I'll give that a shot tommorow when I'm not too tired.

For my purposes, it looks ideal- most of the scripts I use are for silly little things- the one I want this for is for the heavy- ideally, when I alt fire with the sandvich, the heavy will vocalise battle cry and add in a text message that I'd want to randomise. Some ideas atm-
"Sandvich, ATTACK!"
"Let me share delicious sandvich!"
"ONWARD, GLORIOUS SANDVICH"

etc, etc...
#  Sep 16, 2009 at 4:27 AM
Join Date:
Aug 04, 2008
Post Count:
1207
 
Drake Matter 87141
Loading...
Specialty: Medic
Steam ID: drakematter
 
Sandvich is DELICIOUS!
#  Sep 16, 2009 at 4:42 AM
Join Date:
Jun 05, 2008
Post Count:
1292
 
LandsharK 85406
Loading...
Steam ID: landshark9
 
UGH! BALONEY!

*drops sandvich*
#  Sep 16, 2009 at 9:31 AM
Join Date:
Jun 30, 2008
Post Count:
875
 
Ninjarooster 86252
Loading...
Specialty: Scout
Steam ID: Ninjarooster
 
DON'T RUN IT'S JUST HAM
#  Sep 16, 2009 at 9:32 AM
Join Date:
Mar 13, 2008
Post Count:
1864
 
Cascade 83566
Loading...
Specialty: Heavy
Steam ID: coriolis_cascade
Clan: ++nato++
Sponsor
 
Hmm, I'm fairly sure there is a random number command you can use to do this kind of thing. I'll see if I can dig it up when I get home.

Copyright 2007-2008 All Rights Reserved

Team Fortress 2


2 Guys 1 Kill: {TF2F} FlyingPenguin - (102 kill assists)
Captures Blocked: Nimbli Bimbli - (26 captures blocked)
Dominator: {TF2F} Bitch Nasty - (25 dominations)
Flags Captured: Corporal Clegg - (11 flags captured)
Flags Defended: MechaEdd - (12 flags defended)
Physician Assisted Homicide: {TF2F}SME®BUI©K - (271 medic kill assists)
Points Captured: {TF2F}SME®BUI©K - (30 points captured)
Revenger: Count_Flakula - (10 revenges)
Spy Power: Chro - (19 objects killed as spy)
Ubercharger: {TF2F}SME®BUI©K - (89 ubercharges)
Axe Man: {TF2F} Ninja Dude - (18 kills with fireaxe)
Axtinguished: {TF2F} BOOSH Rizzilio - (81 kills with axtinguisher)
Batter Up!: soup! - (16 kills with bat)
Biggest Prick: Sam - ClutchKill.com - (8 kills with syringegun)
Blood Sucker: {TF2F}SME®BUI©K - (30 kills with blutsauger)
Broke Backburner: {TF2F} FlyingPenguin - (223 kills with backburner)
Can You Dig It?: {TF2F}.TüRb!NE. - (3 kills with shovel)
Doctor's Certificate: Maero - (16 kills with bonesaw)
Drunken Brawler: [???] Deviruchi - (4 kills with bottle)
Epic Defender: {TF2F} Spy - (9 kills with wrench)
Fire Spitter: {TF2F}blistering - (100 kills with flamethrower)
Flare Gunner: {TF2F} FlyingPenguin - (12 kills with flare gun)
Grenade Spammer: GeneralSheep - (47 kills with pipe)
Grey Matter: STar - (168 snipings as sniper)
Hadouken Master: Xandier - (1 kills with pyro taunt)
Hot Potato: {TF2F} BOOSH Rizzilio - (4 kills with rocket deflection)
I <3 Sasha: {TF2F} Bitch Nasty - (181 kills with minigun)
Knife Maniac: {TF2F} Dartagnan - (109 knifings)
Last Resort: [Ba-El] BoC - (26 kills with smg)
Manslayer: [FRGT] Klare - (10 kills with machete)
Master Fister: Maero - (3 kills with fists)
Peashooter Marksman: Corporal Clegg - (48 kills with scout pistol)
Pickle Squad Award: [NH]Pitt - (18 pickles man handled)
Rocket Scientist: [TF2F]Lancer - (217 kills with rocket)
Scatter Shot: Corporal Clegg - (147 kills with scattergun)
Sentrygun Master: Numenor - (142 kills with sentrygun)
Spam Blocker: {TF2F} BOOSH Rizzilio - (1 kills with pipe deflection)
Spy Checker: {TF2F} Fanlaen - (5 kills with pistol)
Sticky Explosion: {TF2F}Album - (105 kills with pipe remote)
Ubersawer: Psycholord - (27 kills with ubersaw)
Stats Refreshed 6/24/2008 5:00:03 AM CST
AddThis Social Bookmark Button
Fortcast Podcast
Donate
Welcome, you are not logged in.
Login or Register
Team Fortress 2 Fort Team Fortress 2 Fort