The game's own HUD: hide, move or resize its parts, open and close the hunt's menu.
The game draws its HUD itself: the MENU tab, the health bar, the ammo count, the compass and the rest. hud hides,
moves and resizes those parts, so a mod can make them bigger, put them elsewhere, replace them with its own drawing
(draw.*) or clear the screen. Hidden parts stay
hidden until a mod shows them again, or the scripts reload (F9).
Element
What it is
Move / resize
menu
the MENU tab at the top, and the click on it; the menu still opens with Esc or hud.openMenu
no
health
the health bar (shown while hurt)
yes
ammo
the ammo count and "out of ammo"
yes
credits
the credits earned in this hunt
yes
compass
the compass
yes
trophy
the trophy info window (after a kill, in the trophy room)
yes
survive
Survive mode's time, score and wave
yes
evacuation
the evacuation / relocation countdown
yes
keyhints
the key hints (resupply, trophy room keys)
yes
binoculars
the binoculars' sight and their target's name, weight and distance
no
Offsets are in the same units as draw (pixels of the draw event, x to the right, y down); sizes are factors of the
game's own size (1 = normal, 0.25 to 4). Esc reaches mods first, as
the back event, which a mod may cancel.
Makes a part of the HUD bigger or smaller; without a factor it only returns it. The compass grows away from its corner, texts and bars around their own place.
Parameter
Type
name
string
a movable element
factoroptional
number
its size: 1 = normal (0.25 to 4)
Returns
number
the factor
-- a compass twice as big, a bigger health barhud.scale("compass", 2)
hud.scale("health", 1.5)