Display Flags

   Display flags are used to dynamically alter when items are drawing on the hud.  
   These can be used in the menuDef and itemDef levels.  
   Because of limitations in the q3f2.x code, the modifications we made created two different types.
   
Type one, usage:

ownerDrawFlag display_flag

CG_SHOW_RED_TEAM_EXISTS               makes the menu/item def draw when the red team exists
CG_SHOW_BLUE_TEAM_EXISTS              makes the menu/item def draw when the blue team exists
CG_SHOW_YELLOW_TEAM_EXISTS            makes the menu/item def draw when the yellow team exists
CG_SHOW_GREEN_TEAM_EXISTS             makes the menu/item def draw when the green team exists
CG_SHOW_ON_RED_TEAM                   makes the menu/item def draw when the player is on the red team
CG_SHOW_ON_BLUE_TEAM                  makes the menu/item def draw when the player is on the blue team
CG_SHOW_ON_YELLOW_TEAM                makes the menu/item def draw when the player is on the yellow team
CG_SHOW_ON_GREEN_TEAM                 makes the menu/item def draw when the player is on the green team
CG_SHOW_RED_TEAM_NOT_EXISTS           makes the menu/item def draw when there is not a red team (buggy?)
CG_SHOW_BLUE_TEAM_NOT_EXISTS          makes the menu/item def draw when there is not a blue team (buggy?)
CG_SHOW_YELLOW_TEAM_NOT_EXISTS        makes the menu/item def draw when there is not a yellow team (buggy?)
CG_SHOW_GREEN_TEAM_NOT_EXISTS         makes the menu/item def draw when there is not a green team (buggy?)
CG_SHOW_PLAYER_HAS_SENTRYCAM          makes the menu/item def draw when the engineer has their sentrycam on
CG_SHOW_PLAYER_HAS_SENTRY             makes the menu/item def draw when the engineer has an autosentry built
CG_SHOW_PLAYER_HAS_SUPSTATION         makes the menu/item def draw when the engineer has a supplystation built
CG_SHOW_PLAYER_HAS_SCANNERON          makes the menu/item def draw when the recon has the scanner enabled
CG_SHOW_ENEMY_USE_SUPSTATION          makes the menu/item def draw when an enemy is using the engineers supplystation
CG_SHOW_FRIENDLY_USE_SUPSTATION       makes the menu/item def draw when a friendly player is using the engineers supplystation
CG_SHOW_HEALTHCRITICAL                makes the menu/item def draw when the player has 25 or less health points
CG_SHOW_HEALTHOK                      makes the menu/item def draw when the player has more than 25 health points
CG_SHOW_WEAPONSWITCH                  makes the menu/item def draw while the player is switching weapons
CG_SHOW_PLAYER_IS_AGENT               makes the menu/item def draw when a player is an agent (obsolete, see class below)
CG_SHOW_CHATEDIT                      makes the menu/item def draw when a player is typing a message
CG_SHOW_ON_TEAM                       makes the menu/item def draw when a player is on a team
CG_SHOW_ESC_MENU                      makes the menu/item def draw when the large esc menu is up (not sure why you'd want this)
CG_SHOW_GREN_PRIMED                   makes the menu/item def draw when a grenade type 1 is primed
CG_SHOW_GREN_PRIMED2                  makes the menu/item def draw when a grenade tyep 2 is primed
CG_SHOW_ALERT_ICON                    makes the menu/item def draw when cg_visualaids are on
CG_SHOW_NO_SCOREBOARD                 makes the menu/item def draw only when the scoreboard is not up


Type two, usage:

class {type;type;type}

Usable classes:  Recon;Sniper;Soldier;Grenadier;Paramedic;Minigunner;Flametrooper;Agent;Engineer;Civilian;Spectator


weapon {type;type;type}

Usable weapons:  axe;shotgun;supershotgun;nailgun;supernailgun;railgun;grenadelauncher;rocketlauncher;sniperrifle;flamethrower;minigun;assaultrifle;dartgun;pipelauncher;napalmcannon


type two conditionals are positive draws, meaning, if you put class {soldier}, it will only draw when the player is a soldier.  
They are stackable as well.  Though few weapons share, you can have both a class and weapon conditional on the same menu/item def.


document effective date: 27 jan 2005
document owner: shuriken