COMP MED-CALL SCRIPT

A Config Script for Team Fortress 2

Call Medic, Call Uber, Call enemy Uber with 1 Button

25 lines | 854 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Competitive Medic Call Script \\

alias "uber1" "alias +med enemyUber; alias -med none"
alias "uber0" "alias +med medTester"
alias "enemyUber" "say ~~~ >>>ENEMY UBER<<< POPPED ~~~"
alias "v_medic" "voicemenu 0 0"
alias "v_uber" "voicemenu 1 6"
alias "medTester" "alias medTest medP; wait; medTest"
alias "wait" "alias medTest medN"
alias "medP" "echo The comand >WORKS< on this server; alias +med +medicCall; alias -med -medicCall; v_medic"
alias "medN" "echo The comand >>>DOES NOT WORK<<< on this server; alias +med v_medic; v_medic"
alias "+medicCall" "callRedirect; alias -medicCall xcall1"
alias "callRedirect" "wait 100; alias -medicCall xcall2"
alias "xcall1" "v_medic"
alias "xcall2" "v_uber"
alias "-med" ""

uber0
alias "+table" "uber1"
alias "-table" "uber0" 

//binds

bind "<KEY 1>" "+med"
bind "<KEY 2>" "+table"
This script lets you call for a Medic, ask for Uber and call enemy uber with 1 button (<KEY 1>). If you hit the button (just a simple depress), you ask for a Medic (Voiceline), if you hold the button for more than 0.1 seconds, you ask your Medic to activate Uber (Voiceline) and if you hold another specified button (<KEY 2>) and press <KEY 1>, you send this chat message:
 ~~~ >>>ENEMY UBER<<< POPPED ~~~.
There are very view servers where the 'hold' function is disabled. The first time you press <KEY 1>, the script will check whether it is enabled or disabled on the server. If it is disabled it will simply change the 'hold' function to the 'hit' function. 

Example : <KEY 1> is bound to "e" and <KEY 2> is bound to "CTRL". If you press CTRL + e you will send the chat message. If you hold "e" you ask to activate uber. If you tap "e" you ask for a Medic. 
You can also bind other keys to <KEY 2> like "mouse4", "ALT" or "SHIFT".

SETUP: All you need to do is replace <KEY 1> and  <KEY 2> in the last 2 rows.
Sign up to access this!
  • Ska1b1 avatar
    Ska1b1 Joined 10mo ago
    Offline
    162 points Ranked 23414th
    2mo
    Wrong, the wait command is actually enabled on Casual and I think on comp as well (not sure about Comp tho). The script should work on all Casual servers.
    Bananite
    URL to post:
  • Djusan avatar
    Djusan Joined 2mo ago
    Offline
    2mo
    wait command is disabled on casual and comp I think, your script is not working on them :) (At least the part xcall1 and xcall2, because of the wrong input for the server)
    Bananite
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Ska1b1
writer
Original Authors
Ska1b1
Contributors
Ska1b1
Special Thanks
Ska1b1

Submitter

Ska1b1 avatar
Ska1b1 Joined 10mo ago
Offline
162 points Ranked 23414th

Ska1b1
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 575 Views
  • 3 Posts
  • 2moSubmitted
  • 2moModified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

bcp.crwdcntrl.net tracking pixel