Help me make some dumb bind?

Discussion in 'Team Fortress 2 Talk' started by mint onion, Jan 12, 2014.

  1. mint onion

    mint onion L3: Member

    Messages:
    101
    Positive Ratings:
    45
    When I press 'w' to run forward, I'd like to also have my character use the "Positive" talk command.

    When I hit 's', I'd like it to run backwards and use the "Negative" talk command.

    Only when the key is first pressed and not while it's being held down. ;)

    Thanks
     
    Last edited: Jan 12, 2014
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    alias +forwardyell "+forward; voicemenu 2 5"
    alias -forwardyell "-forward"
    alias +backyell "+back; voicemenu 2 6"
    alias -backyell "-back"

    bind w +forwardyell
    bind s +backyell

    Dump in yo autoexec or where ever else you may wish.
     
    • Thanks Thanks x 2
    Last edited: Jan 13, 2014
  3. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Yeah, making it only happen on initial press is no big trick because the game doesn't acknowledge held-down keys for voice commands in the first place. Too easy to abuse.
     
    • Thanks Thanks x 1
  4. mint onion

    mint onion L3: Member

    Messages:
    101
    Positive Ratings:
    45
    i'm pasting the code into the cfgs using notepad, will this work?

    i'm using "Kaizen's Team Fortress 2 Performance Config" and flatHUD custom UI. would these potentially conflict with this script?

    pasting the code into autoexe.cfg or config_default.cfg has no effect.
    pasting the code into config.cfg unbinds forward and backward movement.

    thanks!
     
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    Whoops, the numbers should be 2 5 and 2 6. I didn't remember the menus offhand so I looked them up on the wiki and just put in 3 because it was listed as menu 3, but I forgot they are zero based (the menus are 0 1 2, not 1 2 3).
     
    • Thanks Thanks x 2
  6. mint onion

    mint onion L3: Member

    Messages:
    101
    Positive Ratings:
    45
    dropped it in my autoexe and it's as ridiculous as i had hoped. i'll tweak the numbers, the commands are off but i can work it from here, you're so rad. i owe you like a keg of beers man.

    you should have a donate button under your avatar.
     
  7. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    795
    There is also a go left and go right. Maybe those help for A and D?
     
    • Thanks Thanks x 1
  8. mint onion

    mint onion L3: Member

    Messages:
    101
    Positive Ratings:
    45
    it was interesting to see not only how it tends to enhance the character of the classes, but i'd swear it effects my play style and the tone of the players around me in the game.

    at times it can make encounters more entertaining. when i was playing the heavy, i'd run forward and he'd chuckle confidently and shout "I FEEL ALIVE!". when i'd pullback to dodge a rocket or retreat from an enemy push, sometimes my character's last words would be "NOT GOOD!" as an arrow planted itself in my skull.

    when i played the scout, he would laugh joyfully as he jumped all around their heads trying to dodge attacks and if i manage to kill them in the process, the next time we crossed paths, they tend to quickly adjust their priorities. i think the scout's arrogance definitely aggravates players. after a while they really start to come at me when I enter the same room as them.

    the medic runs faster than the heavier attack classes and so i'm often running ahead, looking backwards, watching for spies or teammates low on health. this play style makes my medic say more negative things than the others. often times i'll glance back at someone i'm paired with and the script berates them on a subconscious level. my medic shouts "MNAAH!" and "Dummkopfs!" and coincidentally i've notice their weapon will sometimes drop, meaning they've lowered their view towards the ground or will leave me behind by taking a different route.

    because there is so much action going on in game, there is already automatic emotes being cued from everywhere in the game so it's ingrained into the experience. there are pained cries or gruffs from get-hits and sometimes a player might battle cry at the start of a round or say, "The cart's going backwards!" or "Help me capture this point!". most players will often use these emotes to call for medics or out a spy or simply thank people. then text chat and mic chatter sandwiches another level of noise on top of this digital stew of expression.

    the spy is snarky and his attitude, like all of the classes, is portrayed in his voice commands. not so much "trolling" but i felt like more shit talk started when his emotes were being spammed as i ran around the level.

    people seemed to enjoy the presence of the soldier barking his orders at them. on the server i played on, players would actually mimic his laughter. it seemed fairly obvious to me. it reminded me of when observing gears of war players mimicking the catch-phrases from the game while they played.

    i think everyone got quieter when i played the pyro. he makes these muffled giggles and friendly chirping sounds from behind his death mask. and the fact i was running forward most the time exuded a softly spoken, nice, and positive ambiance, until my enemies began screaming through a blanket of flames.

    the script broke down for the engineer. it turns out he only has 1 positive clip: "Well don't that beat all!" so i'd be running around saying that a million times in a row annoying the shit out of everyone, including myself. the tf2 wiki scripting page says you can make class specific config file, ie. engineer.cfg
    so maybe i can just make him constantly say "Somebody wanna wrastle up a... teleporter 'round here?" and "We need a teleporter riiight here."

    i had to remove it from my config after an hour but it was really interesting. i'll have to modify the script so the voice commands have a pause and are more spaced out to remove the burn out aspect.
     
  9. mint onion

    mint onion L3: Member

    Messages:
    101
    Positive Ratings:
    45
    i think that'd be cool, i just wish there was a way i could prevent it from spamming as much as it already does, as it gets old fast if it's too repetitive. maybe a double tap would be a reasonable implementation but i don't expect that's possible with a script. also, problem with those commands is they also sends a text command. but it's a great idea. maybe using the battle cry with a jump would be cool to.
     
    Last edited: Jan 14, 2014