Template:Metrics/Speed/doc

From Team Fortress Wiki
< Template:Metrics/Speed
Revision as of 04:00, 11 August 2012 by Org (talk | contribs) (Added Medic)
Jump to: navigation, search

This template drops in a class's speed, modified by settings that determine what the class has equipped (where appropriate). The C argument is the only one required. The A argument indicates the action the player is taking, and other arguments and values depend on the class. The W argument, if defined, means the value returned is modified by being under the Disciplinary Action effect.

Template defaults to 0 if the C argument is unknown, to avoid causing downstream parsing failures if used in an equation.

Arguments

Argument Meaning
C Class name
A Action
W If under Disciplinary Action effect
P Primary weapon
S Secondary weapon
M Melee weapon
G Item set (G stands for Group, synonym of set)
B Boost amount (Scout)
U ÜberCharge amount (Medic)
H Health (Soldier)
Heads taken (Demoman)
T Triggered Ability (Heavy and Engineer)

Valid argument settings

C A P S M G B U H T
scout omitted
back
crouch
swim
baby face's blaster crit-a-cola Positive real
0-99 inclusive
soldier cow mangler 5000 escape plan Positive integer
0-200 inclusive
pyro gas jockey's gear
demoman Not Yet Implemented
heavy Not Yet Implemented
engineer haul
medic Overdose Positive real
0-100 inclusive
sniper Not Yet Implemented
spy

Sub-templates The speed values for each class are stored in sub-templates, due to overall complexity.