Skip to content

SBARINFO changes

Evghenii edited this page Oct 4, 2022 · 13 revisions

New SBARINFO commands from Zandronum 3.1:

  • IfSpectator [not] [dead] - executes the following sub block if the local player is (not) a spectator. For additional complexity, it's possible to check if the player is also a dead spectator.
  • IfSpying [not] - executes the following sub block if the local player is (not) viewing another player's screen.

New properties for DrawNumber and DrawBar:

Property Description
lives Remaining lives
jumptics Remaining jump cooldown tics
secondjumptics Remaining second jump cooldown tics
secondjumpsremaining Remaining second jumps amount
crouchslidetics Remaining crouch slide tics
wallclimbtics Remaining wall climb tics
airwallruntics Remaining air wall run tics

IfProperty

Q-Zandronum has a new SBARINFO function IfProperty <property> [not] <value> [%]. It acts similarly to IfHealth from GZDoom, but works with wider variety of player properties.

Available properties

Property Description
health The player's current health level
armor The amount of armor the player is currently carrying
ammo1 The amount of primary ammo for the current weapon
ammo2 The amount of secondary ammo for the current weapon
ammo The amount of the specified ammo the player is holding
airtime The player's remaining air supply (in seconds) when underwater
lives Remaining lives
savepercent Indicates the percentage of damage absorbed by armor
secondjumptics Remaining second jump cooldown tics
secondjumpsremaining Remaining second jumps amount
crouchslidetics Remaining crouch slide tics
wallclimbtics Remaining wall climb tics
airwallruntics Remaining air wall run tics