Item timers
Reference
- The available SuperHUD elements are:
ItemTimers1_Icons
toItemTimers4_Icons
Icons of a list of item timers.ItemTimers1_Times
toItemTimers4_Times
Respawn times of a list of item timers.
- SuperHUD configs should therefore always define item timer elements in matching Icons/Times pairs.
- Each list can be filtered by team in CTF/NTF using the
itteam <R|B|O|E|N>
(Red, Blue, Own, Enemy, Neutral) command. - If there isn't at least 1 red flag and 1 blue flag,
itteam N
will match all items. - Backgrounds can be colored by the team of each item timer using the
color I
command.
The red/blue teams get red/blue colors, other teams (neutral/none) don't draw the background. - The
direction
command is only used for the axis (L/R ->horizontal, T/B ->
vertical).
Ordering is handled by thech_timersOrder*
CVars. ch_timersList
is a list of item type names. It dictates:- What types are filtered out. Types not in the list are not displayed.
- The order in which item timers are displayed based on type.
Walkthrough
SuperHUD
ItemTimers1_Icons
ItemTimers1_Icons{rect 0 0 12 16}
As you can see, 1 element represents a list of item timers.
ItemTimers1_Times
ItemTimers1_Icons{rect 0 0 12 16}ItemTimers1_Times{rect 0 0 12 16textalign Cfont sansmanfontsize 8 12}
bgcolor
and fill
ItemTimers1_Icons{rect 0 0 12 16bgcolor 0.1 0.1 0.1 0.5fill}ItemTimers1_Times{rect 0 0 12 16textalign Cfont sansmanfontsize 8 12}
textoffset
ItemTimers1_Icons{rect 0 0 12 16bgcolor 0.1 0.1 0.1 0.5fill}ItemTimers1_Times{rect 0 0 12 16textoffset 0 14textalign Cfont sansmanfontsize 8 12}
- We add a team-colored line below the icons for CTF and NTF:
- We define a background as usual with
bgcolor
andfill
. - We modify the background color's RGB or A values with
color I
.- When the item timer's team is red/blue, the RGB channels are changed to be red/blue.
- When the item timer's team is neutral/none, the A channel is set to 0 (i.e. invisible).
ItemTimers1_Icons{rect 0 0 12 16bgcolor 0.1 0.1 0.1 0.5fill}ItemTimers1_Times{rect 0 16 12 1color Ibgcolor 0 0 0 1filltextoffset 0 6textalign Cfont sansmanfontsize 8 12}
margins
ItemTimers1_Icons{rect 0 0 12.5 16bgcolor 0.1 0.1 0.1 0.5fillmargins 1 1 1 1}ItemTimers1_Times{rect 0 16 12.5 1color Ibgcolor 0 0 0 1filltextoffset 0 6textalign Cfont sansmanfontsize 8 12}
Console commands
\ch_timersList "mh ra ya rg lg rl"
Since the map has two YAs, it shows up twice.
The "??" means unknown respawn time. This is what you'll see when the ProMode mega-health's countdown hasn't started yet.
\ch_timersList "50hp mh ra"
\ch_timersOrderTeams 3
`ch_timesOrderTeams 3 means that the blue team is always displayed first.
In CTF/NTF, the default team order of item timers is: own, neutral, enemy. (\ch_timersOrderTeams 0
)
To re-order items in the red and blue teams in CTF/NTF, change ch_timersOrderOR
and ch_timersOrderEB
By default, teams are in own, neutral, enemy order.
With ch_timersOrderTeams
, you can put own/enemy/red/blue first.
By default, own items are in flag-to-mid order and enemy items in mid-to-flag order.
With ch_timersOrderOR
and ch_timersOrderEB
, you can put them in flag-to-mid, mid-to-flag, ch_timersList
or inverted ch_timersList
order.
When you set red/blue first with ch_timersOrderTeams
:
ch_timersOrderOR
is for red.ch_timersOrderEB
is for blue.
When you set own/enemy first with ch_timersOrderTeams
:
ch_timersOrderOR
is for own.ch_timersOrderEB
is for enemy.To see team filtering in action to split up timer groups with
itteam
, see the examples below.To make a time list vertical, use either
direction T
ordirection B
.
Examples
Horizontal bar 1
ItemTimers1_Icons{rect 638 4 15 14.66direction Lalignh Rbgcolor 0.07 0.07 0.07 0.5fillmargins 3 1 3 1.66}ItemTimers1_Times{rect 638 18 15 0.66direction Lalignh Rcolor Ibgcolor 0 0 0 1filltextoffset 0 6textalign Cfont sansmanfontsize 10 13.33}
Horizontal bar 2
ItemTimers1_Icons{rect 320 50 25 32direction Lalignh Ccolor 1 1 1 0.25image "gfx/2d/grad_vmid"margins 6 8 6 8}ItemTimers1_Times{rect 320 82 25 1direction Lalignh Ccolor Ibgcolor 0 0 0 0.75filltextoffset 0 8font sansmanfontsize 12 16textalign C}
Horizontal bar 3 - Text on top of icon
ItemTimers1_Icons{rect 320 386 18 24direction Lalignh Cbgcolor 0.07 0.07 0.07 0.5fillmargins 1 2 2 1}ItemTimers1_Times{rect 320 409 18 1direction Lalignh Ccolor Ibgcolor 0 0 0 1filltextoffset 0 -11textalign Cfont sansmanfontsize 10 13.33}
Horizontal bar 4
- 3 horizontal bars split by team (own, neutral, enemy)
- Own and enemy teams: text below team-colored bars
- Neutral team: text on top of the icons, background image behind each icon
ItemTimers1_Icons{rect 245 4 15 14margins 2.5 1 2.5 1direction Lalignh Rbgcolor 0.07 0.07 0.07 0.5fillitteam O}ItemTimers1_Times{rect 245.33 17.33 15 0.66direction Lalignh Rcolor Ibgcolor 0 0 0 1fillfontsize 8 12font sansmantextalign Ctextoffset 0 6itteam O}ItemTimers2_Icons{rect 320 30 22 28margins 3 4 3 4direction Lalignh Cimage "gfx/2d/recording"color 0.07 0.07 0.07 0.3itteam N}ItemTimers2_Times{rect 320 44 22 0direction Lalignh Calignv Cfontsize 8 12font sansmantextalign Citteam N}ItemTimers3_Icons{rect 395 4 15 14margins 2.5 1 2.5 1direction Lalignh Lbgcolor 0.07 0.07 0.07 0.5fillitteam E}ItemTimers3_Times{rect 394.66 17.33 15 0.66direction Lalignh Lcolor Ibgcolor 0 0 0 1fillfontsize 8 12font sansmantextalign Ctextoffset 0 6itteam E}
Vertical bar
ItemTimers1_Icons{rect 550 380 22 28direction Talignv Bcolor Ibgcolor 0 0 0 0.25fillmargins 2 2 2 2}ItemTimers1_Times{rect 550 380 22 28direction Talignv Btextalign Cfont sansmanfontsize 12 16}