Class Configs

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

Introduction

When you join a MegaTF server you will be asked to select a team, and then select a class to play as. When you spawn as that class, a corresponding config file will automatically be executed. They are:

scout.cfg sniper.cfg soldier.cfg demoman.cfg medic.cfg hwguy.cfg pyro.cfg spy.cfg enginer.cfg civilian.cfg

Complete List of MegaTF Commands and Their Descriptions

Below are some examples of class-specific scripts beyond the basics:

Example Scout configs

something

Example Sniper configs

The most important config item for a sniper is probably their zooming script. You should probably create a custom zoom script for sniper due to the important sensitivity requirements of the class. Zoom distance and sensitivity are very personal and mouse dependent so I will only provide a base example below.

//Example of a basic zoom script. You can get creative with these for different maps. Or you could have a cycling script with multiple zoom levels, just by repeating the same logic within this script and chaining the aliases together.
//Usage is: one click zoom in, one click zoom back out.
alias z20 "fov 20;wait;sensitivity 1;wait;bind mouse2 z105" //sets your zoom distance and sensitivity at that zoom range, you'll want it lower
alias z105 "fov 105;wait;sensitivity 5;wait;bind mouse2 z20" //reset your zoom and sensitivity to your normal values, use your defaults for the class.
bind mouse2 z20
sensitivity 5
fov 105

Example Soldier configs

Forward 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"

Basic Rocketjump Script

alias long_wait "wait; wait; wait; wait"
alias +launch "cl_pitchspeed 20000; impulse 7; +lookdown; long_wait; +jump; wait; +attack"
alias -launch "-lookdown; -jump; -attack; cl_pitchspeed 100; centerview"
bind alt +launch

Example Demoman configs

add here

Example Medic configs

add here

Example Hwguy configs

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

Example Pyro configs

add here

Example Spy configs

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

Spy Disguise Keypad Selection Menu

// disguises
alias goblue 		"impulse 171;wait;impulse 2;wait;impulse 1"
alias gored		"impulse 171;wait;impulse 2;wait;impulse 2"
alias goscout		"impulse 171;wait;impulse 1;wait;impulse 1"		
alias gosniper		"impulse 171;wait;impulse 1;wait;impulse 2"
alias gosoldier		"impulse 171;wait;impulse 1;wait;impulse 3"
alias godemo		"impulse 171;wait;impulse 1;wait;impulse 4"
alias gomedic		"impulse 171;wait;impulse 1;wait;impulse 5"
alias gohwguy		"impulse 171;wait;impulse 1;wait;impulse 6"
alias gopyro		"impulse 171;wait;impulse 1;wait;impulse 7"
alias goengy		"impulse 171;wait;impulse 1;wait;impulse 9"
bind kp_0 		goblue
bind kp_del 		gored
bind kp_1		goscout
bind kp_2		gosniper
bind kp_3		gosoldier
bind kp_4		godemo
bind kp_5		gomedic
bind kp_6		gohwguy
bind kp_7		gopyro
bind kp_8		feign
bind kp_9		goengy

Example Engineer configs

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