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 (Overload?) game mode.

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 only when 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