Scripts

From The MegaTF/TeamFortress Wiki!
Revision as of 03:08, 2 March 2018 by Aphasia (talk | contribs)
Jump to: navigation, search

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

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

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

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