Jump to content


Photo

rapid rep script


  • Please log in to reply
2 replies to this topic

#1 naknak

naknak

    Advanced Member

  • Users
  • PipPipPip
  • 175 posts

Posted 18 April 2014 - 11:33 AM

  1. Save this as rep.cfg or whatever.
  2. Add exec rep to your autoexec.cfg.
  3. press r for RED or b for BLU, then  1-9 to rep that class (using order from the lobby screen or class selection screen).  The bindings for 1-9 are reverted to normal (slot1-9) after repping 
  4. if your 1-9 are not bound to slots normally, adjust the nums alias to suit.

alias nums "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9"
alias repreds "bind 1 repred1; bind 2 repred2; bind 3 repred3; bind 4 repred4; bind 5 repred5; bind 6 repred6; bind 7 repred7; bind 8 repred8; bind 9 repred9"
alias repblus "bind 1 repblu1; bind 2 repblu2; bind 3 repblu3; bind 4 repblu4; bind 5 repblu5; bind 6 repblu6; bind 7 repblu7; bind 8 repblu8; bind 9 repblu9"

alias repblu1 "say !rep blu scout; nums"
alias repblu2 "say !rep blu solly; nums"
alias repblu3 "say !rep blu pyro; nums"
alias repblu4 "say !rep blu demo; nums"
alias repblu5 "say !rep blu heavy; nums"
alias repblu6 "say !rep blu engie; nums"
alias repblu7 "say !rep blu medic; nums"
alias repblu8 "say !rep blu sniper; nums"
alias repblu9 "say !rep blu spy; nums"

alias repred1 "say !rep red scout; nums"
alias repred2 "say !rep red solly; nums"
alias repred3 "say !rep red pyro; nums"
alias repred4 "say !rep red demo; nums"
alias repred5 "say !rep red heavy; nums"
alias repred6 "say !rep red engie; nums"
alias repred7 "say !rep red medic; nums"
alias repred8 "say !rep red sniper; nums"
alias repred9 "say !rep red spy; nums"

bind r repreds
bind b repblus
nums



#2 VoidWhisperer

VoidWhisperer

    Void

  • Users
  • PipPipPip
  • 683 posts

Steam Profile

Posted 18 April 2014 - 04:03 PM

You might want to make a bind for binding nums.



#3 naknak

naknak

    Advanced Member

  • Users
  • PipPipPip
  • 175 posts

Posted 19 April 2014 - 08:32 AM

Oh, like to cancel? I personally don't use the number keys except for voting in pubs, but for those that want it, cancel can be piled onto the existing bind to escape:

bind ESCAPE "cancelselect;nums"