Next Previous Contents

13. Values for cgame ``ownerdrawflag''

These values can be used for the item `ownerdrawflag' field, to control the appearance of an `ownerdraw' content depending on an engine-dependent value. A ``false'' result causes the item to remain invisible, while a ``true'' result procedes with drawing the content. These ownerdrawFlag values are used for the cgame menu, aka Heads-Up Display (HUD). For convenience, the condition for a true result is listed, while false is assumed if the listed condition is not met. The description can be prefixed with ``Draw this when/if...'' to help clear up confusion.

13.1 CG_SHOW_BLUE_TEAM_HAS_REDFLAG

Blue team has the red flag.

13.2 CG_SHOW_RED_TEAM_HAS_BLUEFLAG

Red team has the blue flag.

13.3 CG_SHOW_ANYTEAMGAME

In a team-based game mode (TDM, 1CTF, 2CTF, etc.)

13.4 CG_SHOW_HARVESTER

In Harvester game mode only.

13.5 CG_SHOW_ONEFLAG

In One-flag CTF game mode only.

13.6 CG_SHOW_CTF

In Two-flag (traditional) CTF game mode only.

13.7 CG_SHOW_OBELISK

In Obelisk game mode?
XXX What is this, Overload?

13.8 CG_SHOW_HEALTHCRITICAL

Health is critically low (<25). Default HUD uses this to make the health HUD flash on low health.

13.9 CG_SHOW_SINGLEPLAYER

In Single-Player game (as opposed to a networked game).

13.10 CG_SHOW_TOURNAMENT

In Tournament game mode only.

13.11 CG_SHOW_DURINGINCOMINGVOICE

A radio message comes in (Q3TA-style voice command/chat).

13.12 CG_SHOW_IF_PLAYER_HAS_FLAG

Player has the flag. This is useful for showing a special icon that only if the player him/herself has the flag.

13.13 CG_SHOW_LANPLAYONLY

In Networked game (as opposed to single-player or local multiplayer [bots]). The lagometer is an example of where this is meaningful.

13.14 CG_SHOW_MINED

Mine(s) has been placed (TA-style mines).

13.15 CG_SHOW_HEALTHOK

Health is OK, i.e. non-critical (>25).

13.16 CG_SHOW_TEAMINFO

Team Info is being selected/shown (teammate is not selected).
XXX need section on selectedplayer information

13.17 CG_SHOW_NOTEAMINFO

Team Info is not being selected/shown (teammate is selected).
XXX again, need section on selectedplayer

13.18 CG_SHOW_OTHERTEAMHASFLAG

Other team has the/your flag (CTF, one-flag).

13.19 CG_SHOW_YOURTEAMHASENEMYFLAG

Your team as the/their flag (CTF, one-flag).

13.20 CG_SHOW_ANYNONTEAMGAME

In any non-team-based games (FFA, tournament, etc.).

13.21 CG_SHOW_2DONLY

This flag is something of an anomaly, since it instructs the menu system to do something, rather than requesting a value. It causes the ownerdraw item to be drawn in 2D form, instead of 3D, as if simpleItems were turned on. Multiple ownerdrawFlags may be listed, with the effects being combined inclusively (boolean "OR" operation).
XXX need example.


Next Previous Contents