Difference between revisions of "User:Lord Manship/scripts"

From Team Fortress Wiki
Jump to: navigation, search
m (Forgot to add a + to the reload in the join class script)
(Updated the Shift Switch script and add a new script to the client scripts.)
Line 1: Line 1:
 
{{User:Lord_Manship/header}}
 
{{User:Lord_Manship/header}}
 
== Client Scripts ==
 
== Client Scripts ==
 +
 +
=== Shift Switch script ===
 
I use this script quite often, and thought I would share with everyone. The original script "Join Class" was made by someone else, but I modified it to suit my needs.
 
I use this script quite often, and thought I would share with everyone. The original script "Join Class" was made by someone else, but I modified it to suit my needs.
  
Line 6: Line 8:
  
 
You can of course change the bindings to suit you more, but this is how I've setup my bindings.
 
You can of course change the bindings to suit you more, but this is how I've setup my bindings.
<code>
+
<code><br/>
 +
<br/>
 +
<br/>
 +
alias +JOINCLASS "bind 1 scout; bind 2 sol; bind 3 pyro; bind 4 demoman; bind 5 heavy; bind 6 engi; bind 7 medic; bind 8 sniper; bind 9 spy; bind e voicemenu16; bind r +reload;bind q voicemenu17;bind v dbs;<br/> bind y voicemenu22; bind u voicemenu23;bind f voicemenu12;bind i voicemenu27;bind c voicemenu20;bind z voicemenu02"<br/>
 +
alias -JOINCLASS "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; bind e voicemenu00; bind r voicemenu11; bind q voicemenu10; bind v +inspect;bind y voicemenu06;bind u voicemenu07; bind f +use_action_slot_item; bind i voicemenu01; bind c voice_menu_3; bind z voice_menu_1"<br/>
 +
alias scout "join_class scout; disguise 1 -1; wait 50; voicemenu21"<br/>
 +
alias sol "join_class soldier; disguise 3 -1; wait 50; voicemenu21"<br/>
 +
alias pyro "join_class pyro; disguise 7 -1; wait 50; voicemenu21"<br/>
 +
alias demoman "join_class demoman; disguise 4 -1; wait 50; voicemenu21"<br/>
 +
alias heavy "join_class heavyweapons; disguise 6 -1; wait 50; voicemenu21"<br/>
 +
alias engi "join_class engineer; disguise 9 -1; wait 50; voicemenu21;build 1 0"<br/>
 +
// When you switch to Engineer, you automaticly get out your teleporter.<br/>
 +
alias medic "join_class medic; disguise 5 -1; wait 50; voicemenu21"<br/>
 +
alias sniper "join_class sniper; disguise 2 -1; wait 50; voicemenu21"<br/>
 +
alias spy "join_class spy; disguise 8 -1; wait 50; voicemenu21"<br/>
 +
alias dbs "destroy 2 0; wait 20; build 2 0; wait 20; +attack; wait 30; -attack; slot2; wait 20; slot1"<br/>
 +
// Destroy, then Build Sentry (DBS)<br/>
 +
// Switches back to your Shotgun, if you have no ammo, switches to your pistol.<br/>
 +
// If you don't have ammo for either, you keep your wrench out.<br/>
 +
alias "voicemenu00" "voicemenu 0 0"<br/>
 +
// MEDIC!<br/>
 +
alias "voicemenu10" "voicemenu 1 0"<br/>
 +
// Incoming!<br/>
 +
alias "voicemenu11" "voicemenu 1 1"<br/>
 +
// SPY!<br/>
 +
alias "voicemenu16" "voicemenu 1 6"<br/>
 +
// Activate Charge!<br/>
 +
alias "voicemenu17" "voicemenu 1 7"<br/>
 +
// UBER Ready!<br/>
 +
alias "voicemenu12" "voicemenu 1 2"<br/>
 +
// Sentry Ahead!<br/>
 +
alias "voicemenu06" "voicemenu 0 6"<br/>
 +
// Yes.<br/>
 +
alias "voicemenu07" "voicemenu 0 7"<br/>
 +
// No.<br/>
 +
alias "voicemenu22" "voicemenu 2 2"<br/>
 +
// Cheers<br/>
 +
alias "voicemenu23" "voicemenu 2 3"<br/>
 +
// Jeers<br/>
 +
alias "voicemenu27" "voicemenu 2 7"<br/>
 +
// Good Job.<br/>
 +
alias "voicemenu01" "voicemenu 0 1"<br/>
 +
// Thanks!<br/>
 +
alias "voicemenu20" "voicemenu 2 0"<br/>
 +
// Help!<br/>
 +
alias "voicemenu02" "voicemenu 0 2"<br/>
 +
// Go Go Go!<br/>
 +
alias "voicemenu21" "voicemenu 2 1"<br/>
 +
// Battle Cry.<br/>
 +
<br/>
 +
<br/>
 +
</code>
 +
 
 +
 
 +
=== Voice Toggle/Hold Script ===
 +
I just recently created a script that allows me to either hold a key to voice chat, or tap it to keep it on.
  
alias +JOINCLASS "bind 1 scout; bind 2 sol; bind 3 pyro; bind 4 demoman; bind 5 heavy; bind 6 engi; bind 7 medic; bind 8 sniper; bind 9 spy; bind e voicemenu16; bind r +reload;bind q voicemenu17"<br />
+
<code><br/>
alias -JOINCLASS "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; bind e voicemenu00; bind r voicemenu11; bind q voicemenu10"<br />
+
// Voice Toggle/Hold Script by Lord_Manship<br/>
alias scout "join_class scout"<br />
+
// This script allows you to either tap the voice key to keep it on, or hold it until you are done using it. Tap it again to turn it off.<br/>
alias sol "join_class soldier"<br />
+
<br/>
alias pyro "join_class pyro"<br />
+
<br/>
alias demoman "join_class demoman"<br />
+
alias recordON "+voicerecord; bind kp_plus recordOFF; recordHOLD_RESET; wait 50; recordHOLD_ONCE"<br/>
alias heavy "join_class heavyweapons"<br />
+
alias recordOFF "-voicerecord; bind kp_plus recordON; recordHOLD_STOP"<br/>
alias engi "join_class engineer"<br />
+
alias +recordHOLD "+voicerecord" // Probably not needed since +voicerecord is already on, but kept incase something goes wrong.<br/>
alias medic "join_class medic"<br />
+
alias -recordHOLD "recordOFF"<br/>
alias sniper "join_class sniper"<br />
+
alias recordHOLD_ONCE "bind kp_plus +recordHOLD"<br/>
alias spy "join_class spy"<br />
+
alias recordHOLD_RESET "alias recordHOLD_ONCE recordHOLD_DATA"<br/>
<br />
+
alias recordHOLD_DATA "bind kp_plus +recordHOLD"<br/>
alias "voicemenu00" "voicemenu 0 0"<br />
+
alias recordHOLD_STOP alias recordHOLD_ONCE ""<br/>
// MEDIC!<br />
+
<br/>
alias "voicemenu10" "voicemenu 1 0"<br />
+
bind kp_plus "recordON"<br/>
// Incoming!<br />
+
// Change all CHANGEME!!!s to a key of you're choosing. EX: kp_plus (Keypad +)<br/>
alias "voicemenu11" "voicemenu 1 1"<br />
 
// SPY!<br />
 
alias "voicemenu16" "voicemenu 1 6"<br />
 
// Activate Charge!<br />
 
alias "voicemenu17" "voicemenu 1 7"<br />
 
// UBER Ready!<br />
 
<br />
 
bind shift "+joinclass"
 
 
</code>
 
</code>
 +
 +
  
 
== Server Scripts ==
 
== Server Scripts ==

Revision as of 07:32, 15 July 2015