Macros
ezQuake macros
Name | Type | Description |
---|---|---|
$ammo | integer | returns amount of ammo held for currently selected weapon |
$armor | integer | returns current armor value |
$armortype | string | returns current armor type related cvars: tp_name_armortype_ga, tp_name_armortype_ya, tp_name_armortype_ra, tp_name_armortype_none |
$bestammo | integer | returns ammo held for the 'best' weapon related cvars: tp_weapon_order |
$bestweapon | string | returns name of best weapon in inventory related cvars: tp_weapon_order, tp_name_sg, tp_name_ssg, tp_name_ng, tp_name_sng, tp_name_gl, tp_name_rl, tp_name_lg |
$cam_angles | string | returns current camera angles, in format that can be passed to /cam_angles command. |
$cam_angles_pitch | float | returns current camera pitch (vertical angle). |
$cam_angles_roll | float | returns current camera roll (not used). |
$cam_angles_yaw | float | returns current camera yaw (horizontal angle). |
$cam_pos | string | returns current camera position, in format that can be passed to /cam_pos command. |
$cam_pos_x | float | returns one component of current camera position. |
$cam_pos_y | float | returns one component of current camera position. |
$cam_pos_z | float | returns one component of current camera position. |
$cells | integer | returns number of cells held, regardless of weapon selected |
$colored_armor | string | returns $armor, surrounded by color codes so it is displayed in &c0b0red&r, &cff0yellow&r, &e00green&r or &cfffwhite&r |
$colored_powerups | ||
$colored_short_powerups | ||
$conheight | ||
$connectiontype | string | returns the current type of the connection |
$conwidth | ||
$date | string | returns the current date in the format <day>.<month>.<year> |
$dateiso | ||
$deathloc | ||
$demolength | integer | returns the expected length of the current demo, in seconds |
$demoname | string | returns the name of the current demo, minus extension |
$demoplayback | boolean | returns whether or not the client is current watching a demo |
$demotime | ||
$droploc | string | returns the name of the location where the last backpack was dropped by the current player. |
$droptime | integer | returns the number of seconds since the last backpack was dropped by the current player. |
$gamedir | string | returns the current gamedir, which is often set when a server is running a mod. e.g: 'fortress' for Team Fortress mods |
$health | the current player's health (0 - 250) | |
$lastip | ||
$lastloc | ||
$lastpowerup | ||
$latency | ||
$ledpoint | ||
$ledstatus | ||
$location | ||
$matchname | ||
$matchstatus | ||
$matchtype | ||
$mp3_volume | ||
$mp3info | ||
$nails | integer | returns number of nails held, regardless of weapon selected |
$need | ||
$ping | ||
$point | ||
$pointatloc | ||
$pointloc | ||
$powerups | ||
$qt | returns " - useful to clear cvars in scripts | |
$rand | ||
$rockets | integer | returns number of rockets held, regardless of weapon selected |
$serverip | ||
$shells | integer | returns number of shells held, regardless of weapon selected |
$team1 | ||
$team2 | ||
$tf_skin | ||
$time | string | returns the local time in the format <hours>:<minutes> |
$timestamp | ||
$took | ||
$tookatloc | ||
$tookloc | ||
$tp_powerups | boolean | $colored_powerups or $colored_short_powerups, depending on value of tp_poweruptextstyle related cvars: tp_poweruptextstyle |
$triggermatch | ||
$weapon | ||
$weaponnum | ||
$weapons |
Qizmo macros
You can use Qizmo teamplay %-functions in ezQuake, e.g. %l
- location, %a
- armor, %b
- best weapon, etc.
Name | Type | Description |
---|---|---|
%a | string | Armour. |
%A | string | Armour type. |
%b | string | Best Weapon and Ammo. |
%c | string | How many cells (ammo) you have. |
%C | string | Color. |
%d | string | Where you last died. |
%e | string | Number of enemies in your vicinity. (shows up as 'x' for you, but as a number for your teammates). |
%E | string | Same as %e but remembers the situation 5 seconds after death. (shows up as 'x' for you, but as a number for your teammates). |
%g | string | Soon appearing powerups (15 sec) or 'quad' if none or timers off |
%h | string | Current Health. |
%i | string | Name and location of item you last picked up. |
%j | string | Name and location of item you last pointed to (%x at %y). |
%k | string | Name and location of item you last picked up or pointed to. |
%l | string | Nearest location from .loc file (or 'someplace' if none found). |
%L | string | Same as %l but remembers the situation 5 secs after death, then reports your current location. |
%m | string | %k if less than 5 secs ago, nearest item otherwise |
%n | string | Will only send the message to teammates in your vicinity. |
%N | string | Hides the message from you. |
%o | string | Number of teammates in vicinity. |
%O | string | Same as %o but remembers the situation 5 seconds after death. |
%p | string | Powerups you have (quad, pent, ring, flag) |
%q | string | Powerups of last seen enemy. |
%r | string | Last reported location (%l). |
%s | string | Enemy led status. |
%S | string | Skin. |
%t | string | %x at %y |
%u | string | what you need (see need menu) |
%w | string | Weapon in Hand and Ammo you have. |
%x | string | Name of object/teammate you are looking at. |
%X | string | Name of object you took. (remembers for 15 seconds) |
%y | string | Location of object you are looking at. |
%Y | string | Location of item you took. (remembers for 15 seconds) |
%z | string | nearest waypoint, based on the direction you are looking to |
%Z | string | nearest waypoint, based on the direction you are moving to |
Formatting
The format of each variable can be set by specifying a format string. For example:
%<20r>l
Will print the standard %l
value, but taking 20 characters, right-aligned.
To set the default formats for each %-function without specifying each time, set user-cvars:
tp_length_l 10
tp_align_l r