Skip to content

ezQuake / macro

66 of 66 · snapshot head

Name
Description
ammo
returns amount of ammo held for currently selected weapon
armor
returns current armor value
armortype
returns current armor type
bestammo
returns ammo held for the 'best' weapon
bestweapon
returns name of best weapon in inventory
cam_angles
returns current camera angles, in format that can be passed to /cam_angles command.
cam_angles_pitch
returns current camera pitch (vertical angle).
cam_angles_roll
returns current camera roll (not used).
cam_angles_yaw
returns current camera yaw (horizontal angle).
cam_pos
returns current camera position, in format that can be passed to /cam_pos command.
cam_pos_x
returns one component of current camera position.
cam_pos_y
returns one component of current camera position.
cam_pos_z
returns one component of current camera position.
cells
returns number of cells held, regardless of weapon selected
colored_armor
returns $armor, surrounded by color codes so it is displayed in &c0b0red&r, &cff0yellow&r, &e00green&r or &cfffwhite&r
colored_powerups
current powerups held as color-coded full names (quad, pent, ring), concatenated without separator.
colored_short_powerups
current powerups held as compact color-coded initials (q=quad blue, r=ring yellow, p=pent red); output order is q-r-p.
conheight
console (virtual) resolution height in pixels.
connectiontype
returns the current type of the connection
conwidth
console (virtual) resolution width in pixels.
date
returns the current date in the format <day>.<month>.<year>
dateiso
current local date and time in ISO-adjacent format YYYY-MM-DD_HH-MM.
deathloc
map location name where the player last died, or tp_name_someplace if no death has been recorded this session.
demolength
returns the expected length of the current demo, in seconds
demoname
returns the name of the current demo, minus extension
demoplayback
returns whether or not the client is current watching a demo
demotime
current demo playback time in seconds (float).
droploc
returns the name of the location where the last backpack was dropped by the current player.
droptime
returns the number of seconds since the last backpack was dropped by the current player.
gamedir
returns the current gamedir, which is often set when a server is running a mod.
health
the current player's health (0 - 250)
lastip
IP address or hostname:port of the last server seen in console output, captured by an internal trigger pattern.
lastloc
location name at time of last death if death occurred within the past 5 seconds; otherwise current location name.
lastpowerup
powerups last seen on the enemy within the past 5 seconds (e.g.
latency
current network latency in milliseconds, rounded to nearest integer.
ledpoint
LED color code indicating the type of entity pointed at: red for enemy, green for teammate, yellow for powerup, blue for item.
ledstatus
LED color code reflecting how many items the player currently needs: green for none, yellow for one, red for two or more.
location
name of the player's current map location, as defined by the active .loc file.
matchname
current match name, derived from the active match-format template (e.g.
matchstatus
current match state: one of "disconnected", "standby", or "normal".
matchtype
current match type keyword: one of duel, ffa, 2on2, 3on3, 4on4, tdm, arena, tfduel, tfclanwar, solo, coop, race, empty, unknown.
nails
returns number of nails held, regardless of weapon selected
need
separator-delimited list of items the player currently needs based on tp_need_* thresholds (e.g.
ping
current network latency in milliseconds, rounded to nearest integer.
point
name of the nearest item or entity the player is pointing at, as used in location-pointing messages; returns tp_name_nothing when the player is flashed.
pointatloc
pointed-at item name combined with its location, in "name at location" format; bounded by the tp_pointtimeout cvar and returns tp_name_nothing when the player is flashed or the timeout expires.
pointloc
map location of the entity pointed at, or current location if no specific point location is available; returns tp_name_nothing when the player is flashed.
powerups
separator-delimited list of powerups currently held (quad, pent, ring, flag for CTF/TF); returns tp_name_none when none held.
qt
returns " - useful to clear cvars in scripts
rand
random float in the range [0, 1).
rockets
returns number of rockets held, regardless of weapon selected
serverip
current server IP address and port, in ip:port form.
shells
returns number of shells held, regardless of weapon selected
team1
name of the Nth team currently playing, alphabetically sorted; $team1 returns the first team, $team2 the second.
team2
name of the Nth team currently playing, alphabetically sorted; $team1 returns the first team, $team2 the second.
tf_skin
current player's skin name, with TeamFortress skin prefixes expanded to full class names (e.g.
time
returns the local time in the format <hours>:<minutes>
timestamp
current local date and time as a compact filesystem-safe string: YYYYMMDD-HHMM.
took
name of the last item picked up; returns tp_name_nothing if nothing has been picked up yet.
tookatloc
last item picked up with its pickup location, in "name at location" format; returns tp_name_nothing when no item has been picked up.
tookloc
map location name where the last item was picked up; returns tp_name_someplace when no item has been picked up.
tp_powerups
$colored_powerups or $colored_short_powerups, depending on value of tp_poweruptextstyle
triggermatch
full text of the console message that last fired a regexp trigger.
weapon
name of the currently active weapon, using tp_name_* cvar values (e.g.
weaponnum
currently active weapon as a slot number (1-8), or pre-selected best weapon number when cl_weaponpreselect is enabled.
weapons
separator-delimited list of all weapons currently held, ordered from strongest to weakest (lg, rl, gl, sng, ng, ssg, sg, axe).