Difference between revisions of "Scripts"

From The MegaTF/TeamFortress Wiki!
Jump to: navigation, search
(Grenade Script For MOUSE3)
Line 104: Line 104:
 
if $team = "yell" then crosshaircolor 255 255 0
 
if $team = "yell" then crosshaircolor 255 255 0
 
</nowiki>
 
</nowiki>
 
+
==Grenade Script For MOUSE3==
<nowiki>Insert non-formatted text here</nowiki>==Grenade Script For MOUSE3==
 
 
When reloading as a soldier, there's not much for your index finger to do so I decided to put the grenades on mouse3 where the index finger can spam them while waiting for reload to finish.
 
When reloading as a soldier, there's not much for your index finger to do so I decided to put the grenades on mouse3 where the index finger can spam them while waiting for reload to finish.
  

Revision as of 18:43, 1 March 2018

General scripts that any class can access should go in config.cfg located in ../quake/fortress/. Class based scripts can go in specific class configs (eg. ../quake/fortress/soldier.cfg)

Generally these scripts are supported by EzQuake.

Grenade Timer

Basic Grenade Script + Timer

Place the following in your config file.

bind  x             "primeone;play gren"
bind  c             "primetwo;play gren"
bind  f             "throwgren"

Place gren.wav in your quake/fortress/sound folder.

2-Touch Grenade Script + Timer

alias gren1prime "primeone; bind x gren1throw"
alias gren1throw "throwgren; bind x gren1prime"
alias gren2prime "primetwo; bind c gren2throw"
alias gren2throw "throwgren; bind c gren2prime"
alias grentime "play gren.wav"
msg_trigger grentime "renade primed"
alias cleargrens "bind x gren1prime; bind c gren2prime"
alias f_death cleargrens
bind x gren1prime
bind c gren2prime

Download grenade timer: GREN.zip

add more styles

Rocketjump Script

alias fwrj "impulse 7;-forward;+back;rotate 180;+jump;+attack;wait;-attack;-jump;-back;+forward;rotate 180;wait;-forward;impulse 7"
bind  mouse4 "fwrj"

add other styles


Generic Zoom Script

This can be applied anywhere, for example in each class config, with custom values, or as an overall zoom script in your main config.cfg

alias z20 "fov 20;wait;sensitivity 0.6;wait;bind mouse2 z105"
alias z105 "fov 105;wait;sensitivity 5;wait;bind mouse2 z20"
bind mouse2 "z25"

Taunts (very important)

alias gogogo "yell;wait;impulse 7;wait;yell;wait;impulse 7;wait;yell;wait;impulse 7;wait;yell;wait;impulse 7;wait;yell;wait;impulse 7;wait;yell;wait;impulse 7;wait;"
bind "yourkey" gogogo
alias pathetic "taunt;wait;impulse 8;wait;taunt;wait;impulse 8;wait;taunt;wait;impulse 8;wait;taunt;wait;impulse 8;wait;taunt;wait;impulse 8;wait;"
bind "yourkey" pathetic

Spy Quick Grapple


//quick grapple script
alias +grap "impulse 8; wait; +attack"
alias -grap "-attack; wait; impulse 2"
bind mouse2 "+grap"

Spy Feign with Backpack Throw


//Feigning with backpack throw
alias yesfeign "cl_pitchspeed 100000;+lookup;wait;+lookup;wait;discard;wait;cl_pitchspeed 150;-lookup;wait;force_centerview;wait;feign;wait;bind f unfeign"
alias unfeign "feign;wait;bind f yesfeign"
bind f yesfeign

Quick Cell Drop

//Cell drop script. Useful for Quick Sentry Gun Building technique
alias celldrops "dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4;wait;dropammo;wait;impulse 4"
bind "key" celldrops

20mm Jump

//hwguy 20mm jump
alias 20mmjump "cl_pitchspeed 100000;+lookdown;wait;+attack;wait;+jump;wait;-attack;wait;-jump;wait;-lookdown;wait;force_centerview;wait;cl_pitchspeed 150"
bind "key" 20mmjump

Team Colored Cross-hair

This script will change your cross-hair color to whatever color team you're on. Put the following in your config.cfg.

if $team = "Blue" then crosshaircolor 0 255 255
if $team = "Red" then crosshaircolor 255 0 0
if $team = "Gren" then crosshaircolor 0 255 0
if $team = "Yell" then crosshaircolor 255 255 0
if $team = "blue" then crosshaircolor 0 255 255
if $team = "red" then crosshaircolor 255 0 0
if $team = "gren" then crosshaircolor 0 255 0
if $team = "yell" then crosshaircolor 255 255 0

Grenade Script For MOUSE3

When reloading as a soldier, there's not much for your index finger to do so I decided to put the grenades on mouse3 where the index finger can spam them while waiting for reload to finish.

Handle granades with just mouse3 and the wheel.

Mwheelup is primeone, mwheeldown is primetwo. When primed, the mwheel is disabled until mouse3 is pressed and released to throw the grenade so another grenade can't be accidentally primed. Throw is disabled until a grenade is primed. If the grenade is held, the controls reset. It works for flares too.

It does take a little getting used to because sometimes a grenade will prime when you're releasing mouse3 from the throw. Lifting the finger straight off will help.

ruleset default tp_msgtriggers 1

alias +throw throwgren alias -throw "unbind mouse3;bind mwheelup primeone;bind mwheeldown primetwo" alias handheld "unbind mouse3;bind mwheelup primeone;bind mwheeldown primetwo" alias havegren "play gren.wav;unbind mwheelup;unbind mwheeldown;bind mouse3 +throw" msg_trigger havegren "primed" -l 2 msg_trigger handheld "not the pin" -l 1