cod5-sdk/raw/ui_mp/hud.menu
2008-11-20 00:00:00 +00:00

2075 lines
60 KiB
Text

// PC HUD - MP
#include "ui/menudef.h"
#define TEAM_IS_MARINES (localVarString( ui_team ) == "marines")
#define TEAM_IS_OPFOR (localVarString( ui_team ) == "opfor")
#define RANK_ORIGIN 0 6
#define ONLINEGAME (dvarInt( "onlinegame" ) && !dvarInt( "xblive_privatematch" ) )
#define ONLINEGAME_OFFSET 10
#define FLASH_OFS ((sin(milliseconds()/90))*2)
#define FLASH_OFS2 ((sin(milliseconds()/90))*4)
#define HUD_ALPHA 0.65
#define HUD_FOREGROUND_ALPHA 0.75
#define DPAD_ICON_ALPHA 0.65
#define NOT_SPECTATING (!spectatingClient())
#define OBJICON( teamName, idx, texture, dvarName, showValue ) \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect (30*idx) -74 24 24 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
exp rect X( (30*idx) - ((FLASH_OFS) * dvarInt( dvarName+"_flash" )) ) \
exp rect Y( -74 - ((FLASH_OFS) * dvarInt( dvarName+"_flash" )) ) \
exp rect W( 24 + (FLASH_OFS2 * dvarInt( dvarName+"_flash" )) ) \
exp rect H( 24 + (FLASH_OFS2 * dvarInt( dvarName+"_flash" )) ) \
origin 20 0 \
background texture \
forecolor 1 1 1 0.61 \
visible when( dvarString( dvarName ) == showValue && team( name ) == teamName ); \
decoration \
}
#define SCOREBAR_BORDER( setting, alliesColor, axisColor ) \
itemDef \
{ \
style WINDOW_STYLE_FILLED \
rect 36 -36 80 12 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
forecolor 0 0 0 0 \
border 1 \
bordercolor alliesColor 1 \
bordersize 2 \
visible when ( (tableLookup( "mp/mapsTable.csv", 0, dvarString( "mapname" ), 1 ) == setting) && team( name ) == "TEAM_ALLIES" ); \
decoration \
} \
itemDef \
{ \
style WINDOW_STYLE_FILLED \
rect 36 -36 80 12 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
forecolor 0 0 0 0 \
border 1 \
bordercolor axisColor 1 \
bordersize 2 \
visible when ( (tableLookup( "mp/mapsTable.csv", 0, dvarString( "mapname" ), 1 ) == setting) && team( name ) == "TEAM_AXIS" ); \
decoration \
}
#define TICKER_WIDTH( segID ) (segID*64) 1 64 6 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
#define TICKER_WIDTH_WS( segID ) (segID*85) 1 151 6 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
#define HUD_TICKER( segID ) \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect TICKER_WIDTH( segID ) \
origin 0 0 \
background "hud_xpticker480" \
forecolor 1 1 1 HUD_FOREGROUND_ALPHA \
visible when( !dvarInt( "wideScreen" ) ); \
decoration \
} \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect TICKER_WIDTH_WS( segID ) \
origin 0 0 \
background "hud_xpticker480ws" \
forecolor 1 1 1 HUD_FOREGROUND_ALPHA \
visible when( dvarInt( "wideScreen" ) ); \
decoration \
}
#define BOTTOM_RECT_X 0
#define BOTTOM_RECT_Y 0
#define MINIMAP_ORIGIN 2 11
{
assetGlobalDef
{
fadeClamp 1 // sets the fadeup alpha
fadeCycle 1 // how often fade happens in milliseconds
fadeAmount 0.1 // amount to adjust alpha per cycle
}
// Low health overlay
menuDef
{
name "Low Health"
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible 1
itemDef
{
name "healthoverlay"
rect 0 0 640 480
forecolor 1 1 1 1
background "overlay_low_health"
ownerdraw CG_PLAYER_LOW_HEALTH_OVERLAY
visible when( NOT_SPECTATING )
decoration
}
}
// Mantle hint
menuDef
{
name "MantleHint"
rect 0 105 40 40 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
fullScreen 0
visible when( dvarInt( ui_hud_hardcore ) == 0 && !ui_active() )
itemDef
{
name "chRect"
rect 0 0 40 40
exp rect Y( 0 - (ONLINEGAME * ONLINEGAME_OFFSET) );
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_MANTLE_HINT
visible when( NOT_SPECTATING )
forecolor 1 1 1 HUD_ALPHA
decoration
}
}
// Cursor hints
menuDef
{
name "Cursorhints"
rect 0 60 40 40 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
fullScreen 0
visible when( dvarInt( ui_hud_hardcore ) == 0 && !ui_active() )
itemDef
{
name "chRect"
rect 0 0 40 40 // 64x64
exp rect Y( 0 - (ONLINEGAME * ONLINEGAME_OFFSET) );
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_CURSORHINT
visible when( NOT_SPECTATING )
forecolor 1 1 1 HUD_ALPHA
decoration
}
}
// Invalid cmd hint
menuDef
{
name "InvalidCmdHint"
rect 0 -150 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
fullScreen 0
visible 1
itemDef
{
name "chRect"
rect 0 0 0 0
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_INVALID_CMD_HINT
textfont UI_FONT_NORMAL
visible when( NOT_SPECTATING )
decoration
}
}
// Stance indicator
menuDef
{
name "stance"
rect 145 -81 48 48 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
fullScreen 0
visible when( !flashbanged() && !ui_active() && NOT_SPECTATING );
itemDef
{
name "chRect"
rect 0 0 80 80 // 64x64
ownerdraw CG_PLAYER_STANCE
textfont UI_FONT_OBJECTIVE
visible when( !inkillcam() && dvarint( ui_hud_showstanceicon ) != 0 && !selecting_location() && dvarint( ui_hud_hardcore ) == 0 );
forecolor 1 1 1 HUD_ALPHA
decoration
}
}
#define ALLIES_HAVE_RADAR (dvarint( ui_radar_allies ) && team( name ) == "TEAM_ALLIES" )
#define AXIS_HAVE_RADAR (dvarint( ui_radar_axis ) && team( name ) == "TEAM_AXIS" )
#define CLIENT_HAS_RADAR (dvarint( ui_radar_client ) && team( name ) == "TEAM_FREE" )
#define RECT_COMPASS 0 0 COMPASS_SIZE_MP COMPASS_SIZE_MP HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
#undef MINIMAP_ORIGIN
#define MINIMAP_ORIGIN 6 6 //2 2
// Compass
menuDef
{
name "Compass_old"
rect RECT_COMPASS
fullScreen 0
visible when ( !inkillcam() && !flashbanged() && !ui_active() && !scoped() && (dvarString( createfx ) != "on") && (dvarint( ui_hud_hardcore ) == 0 || ALLIES_HAVE_RADAR || AXIS_HAVE_RADAR || CLIENT_HAS_RADAR || dvarInt( g_compassShowEnemies ) ) && NOT_SPECTATING );
itemDef
{
name "minimapBG"
rect (MINIMAP_X_MP - 14) (MINIMAP_Y_MP - 6) COMPASS_SIZE_MP COMPASS_SIZE_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
background "minimap_background"
ownerdraw CG_PLAYER_COMPASS_BACK
visible when ( !selecting_location() );
decoration
}
itemDef
{
name "minimapTickerBorder"
rect MINIMAP_X_MP (MINIMAP_Y_MP - 15) MINIMAP_W_MP 14
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
background "minimap_tickertape_background"
ownerdraw CG_PLAYER_COMPASS_BACK
visible when ( !selecting_location() );
decoration
}
itemDef
{
name "minimapTicker"
rect MINIMAP_X_MP (MINIMAP_Y_MP - 12) MINIMAP_W_MP 9
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
background "minimap_tickertape_mp"
ownerdraw CG_PLAYER_COMPASS_TICKERTAPE_NO_OBJ
visible when ( !selecting_location() );
decoration
}
itemDef
{
name "mini_map"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
background "compass_map_default"
ownerdraw CG_PLAYER_COMPASS_MAP
visible when ( !selecting_location() );
decoration
}
// tank pointers
itemDef
{
name "compasstanks"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_TANKS
visible when ( !selecting_location() );
}
// dog pointers
itemDef
{
name "compassdogs"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_DOGS
visible when ( !selecting_location() );
}
// Objective pointers
itemDef
{
name "compasspointers"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
background "objective_line"
ownerdraw CG_PLAYER_COMPASS_POINTERS
visible when ( !selecting_location() && dvarint( ui_hud_showobjicons ) > 0 );
decoration
}
// Friendlies pointers
itemDef
{
name "compassfriendlies"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_FRIENDS
visible when ( !selecting_location() );
}
// Enemy pings
itemDef
{
name "compassenemies"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_ENEMIES
visible when ( !selecting_location() );
}
// Helicopter pointers
itemDef
{
name "compasshelicopters"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_HELICOPTERS
visible when ( !selecting_location() );
}
// Plane pointers
itemDef
{
name "compassplanes"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_PLANES
visible when ( !selecting_location() );
}
// Player direction indicator
itemDef
{
name "compassplayer"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1//HUD_FOREGROUND_ALPHA
background "compassping_player"
ownerdraw CG_PLAYER_COMPASS_PLAYER
visible when ( !selecting_location() );
}
// Squad Objectives
itemDef
{
name "compasssquadobjective"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_SQUAD_OBJECTIVE
visible when ( !selecting_location() );
}
// Artillery Icon
itemDef
{
name "compassartilleryicon"
rect MINIMAP_X_MP MINIMAP_Y_MP MINIMAP_W_MP MINIMAP_H_MP
origin MINIMAP_ORIGIN
forecolor 1 1 1 1
ownerdraw CG_PLAYER_COMPASS_ARTILLERY_ICON
visible when ( !selecting_location() );
}
}
// XP bar
menuDef
{
name "xpbar"
rect BOTTOM_RECT_X -8 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible when( !dvarInt( "xblive_privatematch" ) && dvarInt( "onlinegame" ) && !inkillcam() && !ui_active() && dvarInt( ui_hud_hardcore ) == 0 && NOT_SPECTATING );
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 0 640 8 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 0 0
background "white"
forecolor 0 0 0 0.25
visible when( !dvarInt( "wideScreen" ) );
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 2 540 4 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect W( 640 * ((stat(2301)-stat(2351))/(stat(2352)-stat(2351))) );
origin 0 0
background "scorebar_fadein"
forecolor 1 0.8 0.4 HUD_ALPHA
visible when( !dvarInt( "wideScreen" ) );
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 0 854 8 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 0 0
background "white"
forecolor 0 0 0 0.25
visible when( dvarInt( "wideScreen" ) );
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 2 720 4 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect W( 854 * ((stat(2301)-stat(2351))/(stat(2352)-stat(2351))) );
origin 0 0
background "scorebar_fadein"
forecolor 1 0.8 0.4 HUD_FOREGROUND_ALPHA
visible when( dvarInt( "wideScreen" ) );
decoration
}
HUD_TICKER( 0 )
HUD_TICKER( 1 )
HUD_TICKER( 2 )
HUD_TICKER( 3 )
HUD_TICKER( 4 )
HUD_TICKER( 5 )
HUD_TICKER( 6 )
HUD_TICKER( 7 )
HUD_TICKER( 8 )
HUD_TICKER( 9 )
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 0 36 36 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
origin RANK_ORIGIN
background "rank_icon_bg"
forecolor 0 0 0 HUD_ALPHA
visible 0
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 2 2 24 24 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
origin RANK_ORIGIN
background "rank_pvt1"
forecolor 1 1 1 HUD_ALPHA
visible 0
decoration
}
}
#define SCOREBAR_ORIGIN 0 -7
#define ESCOREBAR_ORIGIN 8 -6
#define SCORE_OFFSET_X 4
#define SCORE_OFFSET_Y 2
#define TEAM_IS_TIED (team(score) == otherteam(score))
#define TEAM_IS_WINNING (team(score) > otherteam(score))
#define TEAM_IS_LOSING (team(score) < otherteam(score))
#define PLAYER_IS_TIED (player(score) == scoreatrank(1) && scoreatrank(1) == scoreatrank(2))
#define PLAYER_IS_WINNING (player(score) > scoreatrank(2))
#define PLAYER_IS_LOSING (player(score) < scoreatrank(1))
#define SHOULD_DISPLAY_SCOREBAR (team( name ) != "TEAM_SPECTATOR")
// Bottom bar
menuDef
{
name "scorebars"
rect (BOTTOM_RECT_X+SCORE_OFFSET_X) (BOTTOM_RECT_Y+SCORE_OFFSET_Y) 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
exp rect Y( BOTTOM_RECT_Y - (ONLINEGAME * ONLINEGAME_OFFSET) );
fullScreen 0
visible when( !inkillcam() && !ui_active() && dvarint( ui_hud_hardcore ) == 0 && (dvarString( "g_gametype" ) != "twar") );
// GREY BACKGROUND
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -45 128 64 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -45 + (TEAM_IS_LOSING*20) );
exp rect H( 64 - (TEAM_IS_LOSING*128) );
forecolor 1 1 1 HUD_ALPHA
background "scorebar_backdrop"
visible when( team( name ) != "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -45 128 64 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -45 + (PLAYER_IS_LOSING*20) );
exp rect H( 64 - (PLAYER_IS_LOSING*128) );
forecolor 1 1 1 HUD_ALPHA
background "scorebar_backdrop"
visible when( team( name ) == "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -36 36 36 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Allies" ) );
visible when ( team( name ) == "TEAM_ALLIES" && SHOULD_DISPLAY_SCOREBAR );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -36 36 36 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Allies" ) );
visible when ( team( name ) == "TEAM_SPECTATOR" && SHOULD_DISPLAY_SCOREBAR );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -36 36 36 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Axis" ) );
visible when ( team( name ) == "TEAM_AXIS" && SHOULD_DISPLAY_SCOREBAR );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -36 36 36 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Allies" ) );
visible when ( team( name ) == "TEAM_FREE" && TEAM_IS_MARINES && SHOULD_DISPLAY_SCOREBAR );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -36 36 36 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Axis" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( team( name ) == "TEAM_FREE" && TEAM_IS_OPFOR && SHOULD_DISPLAY_SCOREBAR );
decoration
}
// TOP team background highlight for score
itemDef
{
style WINDOW_STYLE_SHADER
rect 46 -41 80 12 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -41 + 0-(TEAM_IS_LOSING*24) );
background "white"
forecolor 1 1 1 0.25
visible when ( team( name ) != "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR );
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 46 -41 80 12 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -41 + 0-(PLAYER_IS_LOSING*24) );
background "white"
forecolor 1 1 1 0.25
visible when ( team( name ) == "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR );
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 128 -47 24 24 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -47 + 0-(TEAM_IS_LOSING*24) );
background "hud_arrow_left"
forecolor 1 1 1 HUD_ALPHA
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && SHOULD_DISPLAY_SCOREBAR );
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 128 -47 24 24 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -47 + 0-(PLAYER_IS_LOSING*24) );
background "hud_arrow_left"
forecolor 1 1 1 HUD_ALPHA
visible when ( team( name ) == "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR );
decoration
}
// TOP progress bars for the score
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -39 76 8 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -39 + 0-(TEAM_IS_LOSING*24) );
exp rect W( 76 * (team( score ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_allies" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_SPECTATOR") && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -39 76 8 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -39 + 0-(TEAM_IS_LOSING*24) );
exp rect W( 76 * (team( score ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_axis" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( team( name ) == "TEAM_AXIS" && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -39 76 8 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -39 + 0-(PLAYER_IS_LOSING*24) );
exp rect W( 76 * (player( score ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_axis" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_FREE") && TEAM_IS_OPFOR && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -39 76 8 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -39 + 0-(PLAYER_IS_LOSING*24) );
exp rect W( 76 * (player( score ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_allies" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_FREE") && TEAM_IS_MARINES && SHOULD_DISPLAY_SCOREBAR )
visible 0
decoration
}
itemDef
{
rect 50 -27 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -27 + 0-(TEAM_IS_LOSING*24) );
exp text ( team( score ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
rect 50 -27 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -27 + 0-(PLAYER_IS_LOSING*24) );
exp text ( player( score ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( team( name ) == "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 46 -22 80 10 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -22 + (TEAM_IS_LOSING*12) );
background "white"
forecolor 1 1 1 0.25
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 46 -22 80 10 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -22 + (PLAYER_IS_LOSING*12) );
background "white"
forecolor 1 1 1 0.25
visible when ( team( name ) == "TEAM_FREE" && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -20 76 6 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -20 + (TEAM_IS_LOSING*12) );
exp rect W( 76 * (otherteam( score ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_allies" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( team( name ) == "TEAM_AXIS" && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -20 76 6 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -20 + (TEAM_IS_LOSING*12) );
exp rect W( 76 * (otherteam( score ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_axis" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_SPECTATOR") && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -20 76 6 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -20 + (PLAYER_IS_LOSING*12) );
exp rect W( 76 * (scoreatrank( 2 ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_allies" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_FREE") && TEAM_IS_OPFOR && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 48 -20 76 6 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -20 + (PLAYER_IS_LOSING*12) );
exp rect W( 76 * (scoreatrank( 2 ) / dvarInt( "ui_scorelimit" ) ) );
exp material( "scorebar_" + dvarString( "scr_axis" ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_FREE") && TEAM_IS_MARINES && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
rect 50 -8 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -8 + (TEAM_IS_LOSING*12) );
exp text ( otherteam( score ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
rect 50 -8 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -8 + (PLAYER_IS_LOSING*12) );
exp text ( scoreatrank( 2 ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( team( name ) == "TEAM_FREE" && player( score ) == scoreatrank( 1 ) && SHOULD_DISPLAY_SCOREBAR )
decoration
}
itemDef
{
rect 50 -8 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -8 + (PLAYER_IS_LOSING*12) );
exp text ( scoreatrank( 1 ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
visible when ( team( name ) == "TEAM_FREE" && player( score ) != scoreatrank( 1 ) && SHOULD_DISPLAY_SCOREBAR )
decoration
}
/*
OBJICON( "TEAM_ALLIES", 0, "compass_waypoint_captureneutral_a", "scr_obj_a", "neutral" )
OBJICON( "TEAM_ALLIES", 0, "compass_waypoint_defend_a", "scr_obj_a", "allies" )
OBJICON( "TEAM_ALLIES", 0, "compass_waypoint_capture_a", "scr_obj_a", "axis" )
OBJICON( "TEAM_AXIS", 0, "compass_waypoint_captureneutral_a", "scr_obj_a", "neutral" )
OBJICON( "TEAM_AXIS", 0, "compass_waypoint_capture_a", "scr_obj_a", "allies" )
OBJICON( "TEAM_AXIS", 0, "compass_waypoint_defend_a", "scr_obj_a", "axis" )
OBJICON( "TEAM_ALLIES", 1, "compass_waypoint_captureneutral_b", "scr_obj_b", "neutral" )
OBJICON( "TEAM_ALLIES", 1, "compass_waypoint_defend_b", "scr_obj_b", "allies" )
OBJICON( "TEAM_ALLIES", 1, "compass_waypoint_capture_b", "scr_obj_b", "axis" )
OBJICON( "TEAM_AXIS", 1, "compass_waypoint_captureneutral_b", "scr_obj_b", "neutral" )
OBJICON( "TEAM_AXIS", 1, "compass_waypoint_capture_b", "scr_obj_b", "allies" )
OBJICON( "TEAM_AXIS", 1, "compass_waypoint_defend_b", "scr_obj_b", "axis" )
OBJICON( "TEAM_ALLIES", 2, "compass_waypoint_captureneutral_c", "scr_obj_c", "neutral" )
OBJICON( "TEAM_ALLIES", 2, "compass_waypoint_defend_c", "scr_obj_c", "allies" )
OBJICON( "TEAM_ALLIES", 2, "compass_waypoint_capture_c", "scr_obj_c", "axis" )
OBJICON( "TEAM_AXIS", 2, "compass_waypoint_captureneutral_c", "scr_obj_c", "neutral" )
OBJICON( "TEAM_AXIS", 2, "compass_waypoint_capture_c", "scr_obj_c", "allies" )
OBJICON( "TEAM_AXIS", 2, "compass_waypoint_defend_c", "scr_obj_c", "axis" )
OBJICON( "TEAM_ALLIES", 3, "compass_waypoint_captureneutral_d", "scr_obj_d", "neutral" )
OBJICON( "TEAM_ALLIES", 3, "compass_waypoint_defend_d", "scr_obj_d", "allies" )
OBJICON( "TEAM_ALLIES", 3, "compass_waypoint_capture_d", "scr_obj_d", "axis" )
OBJICON( "TEAM_AXIS", 3, "compass_waypoint_captureneutral_d", "scr_obj_d", "neutral" )
OBJICON( "TEAM_AXIS", 3, "compass_waypoint_capture_d", "scr_obj_d", "allies" )
OBJICON( "TEAM_AXIS", 3, "compass_waypoint_defend_d", "scr_obj_d", "axis" )
OBJICON( "TEAM_ALLIES", 4, "compass_waypoint_captureneutral_e", "scr_obj_e", "neutral" )
OBJICON( "TEAM_ALLIES", 4, "compass_waypoint_defend_e", "scr_obj_e", "allies" )
OBJICON( "TEAM_ALLIES", 4, "compass_waypoint_capture_e", "scr_obj_e", "axis" )
OBJICON( "TEAM_AXIS", 4, "compass_waypoint_captureneutral_e", "scr_obj_e", "neutral" )
OBJICON( "TEAM_AXIS", 4, "compass_waypoint_capture_e", "scr_obj_e", "allies" )
OBJICON( "TEAM_AXIS", 4, "compass_waypoint_defend_e", "scr_obj_e", "axis" )
*/
}
menuDef
{
name "scorebars2"
rect BOTTOM_RECT_X BOTTOM_RECT_Y 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
exp rect Y( BOTTOM_RECT_Y - (ONLINEGAME * ONLINEGAME_OFFSET) );
fullScreen 0
visible when( !inkillcam() && !ui_active() && dvarint( ui_hud_hardcore ) == 0 );
itemDef
{
style WINDOW_STYLE_SHADER
rect 149 -53 48 48 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 6
exp material( "hud_suitcase_bomb" );
visible when ( dvarBool( ui_bomb_timer ) );
forecolor 1 1 1 0.25
decoration
}
itemDef
{
rect 157 -9 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 6 0
exp text ( secondsAsCountdown( timeLeft() ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
visible when ( timeLeft() >= 60 && !dvarBool( ui_bomb_timer ) );
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
decoration
}
itemDef
{
rect 157 -9 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 6 0
exp text ( secondsAsCountdown( timeLeft() ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 0.75 0 HUD_FOREGROUND_ALPHA
visible when ( timeLeft() >= 30 && timeLeft() < 60 && !dvarBool( ui_bomb_timer ) );
decoration
}
itemDef
{
rect 157 -9 1 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 6 0
exp text ( secondsAsCountdown( timeLeft() ) + "." + (9 - int( (milliseconds() / 100)%10 )) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_LEFT
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 0.5 0 1
visible when ( (timeLeft() >= 0 && timeLeft() < 30) || dvarBool( ui_bomb_timer ) );
decoration
}
}
#define SHOULD_DISPLAY_WAR_BAR ((team( name ) != "TEAM_SPECTATOR") && (dvarString( "g_gametype" ) == "twar"))
// Bottom bar
menuDef
{
name "teamiconbar"
rect BOTTOM_RECT_X BOTTOM_RECT_Y 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
exp rect Y( BOTTOM_RECT_Y - (ONLINEGAME * ONLINEGAME_OFFSET) );
fullScreen 0
visible when( !inkillcam() && !ui_active() && dvarint( ui_hud_hardcore ) == 0 && SHOULD_DISPLAY_WAR_BAR );
// grey background
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -45 210 64 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
exp rect Y( -45 + (TEAM_IS_LOSING*20) );
exp rect H( 64 - (TEAM_IS_LOSING*128) );
forecolor 1 1 1 HUD_ALPHA
background "scorebar_backdrop"
visible 1
decoration
}
// allies icon
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -55 56 56 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Axis" ) );
visible when ( team( name ) == "TEAM_AXIS" );
forecolor 1 1 1 1
decoration
}
// axis icon
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 -55 56 56 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
origin 5 -5
exp material( dvarString( "g_TeamIcon_Allies" ) );
visible when ( team( name ) == "TEAM_ALLIES" );
forecolor 1 1 1 1
decoration
}
// momentum progress
// version 1
// itemDef
// {
// rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
// forecolor 1 1 1 1
// background "hud_momentum"
// ownerdraw CG_HUD_WAR_MOMENTUM_PROGRESS
// visible 1
// decoration
// }
// version 2
itemDef
{
rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
forecolor 1 1 1 1
background "hud_momentum_progress_bar_empty"
ownerdraw 171 //CG_HUD_WAR_MOMENTUM_PROGRESS_BAR_EMPTY
visible 1
decoration
}
itemDef
{
rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
forecolor 1 1 1 1
background "hud_momentum_progress_bar_full"
ownerdraw 172 //CG_HUD_WAR_MOMENTUM_PROGRESS_BAR_FULL
visible 1
decoration
}
// itemDef
// {
// rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
// forecolor 1 1 1 1
// background "hud_momentum_progress_bar_outline"
// ownerdraw 173 //CG_HUD_WAR_MOMENTUM_PROGRESS_BAR_OUTLINE
// visible 1
// decoration
// }
itemDef
{
rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
forecolor 1 1 1 1
background "hud_blitzkrieg_progress_bar_full"
ownerdraw 174 //CG_HUD_WAR_BLITZKRIEG_PROGRESS_BAR_FULL
visible 1
decoration
}
// momentum multiplier
// itemDef
// {
// rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
// forecolor 1 1 1 1
// background "hud_momentum_bonus"
// ownerdraw CG_HUD_WAR_MOMENTUM_MULTIPLIER_DETAIL
// visible 1
// decoration
// }
itemDef
{
rect 65 -43 90 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
forecolor 1 1 1 1
background "hud_momentum_progress_bar_outline"
ownerdraw 173 //CG_HUD_WAR_MOMENTUM_PROGRESS_BAR_OUTLINE
visible 1
decoration
}
// momentum blitzkrieg icon
itemDef
{
rect 150 -55 32 32 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
forecolor 1 1 1 1
background "hud_momentum_blitzkrieg"
ownerdraw CG_HUD_WAR_MOMENTUM_MULTIPLIER_BLITZKRIEG
visible 1
decoration
}
}
//#define WEAPINFO_X -150
//#define WEAPINFO_Y -60
#define WEAPINFO_X -4
#define WEAPINFO_Y -36
menuDef
{
name "weaponinfo"
rect BOTTOM_RECT_X BOTTOM_RECT_Y 0 0 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
exp rect Y( BOTTOM_RECT_Y - (ONLINEGAME * ONLINEGAME_OFFSET) );
fullScreen 0
visible when( !inkillcam() && dvarBool( ammoCounterHide ) == 0 && !flashbanged() && !ui_active() && dvarint( ui_hud_hardcore ) == 0 && NOT_SPECTATING );
itemDef
{
name "clipGraphic"
rect (WEAPINFO_X - 30) (WEAPINFO_Y + 32 -6) 1 1
forecolor 1 1 1 HUD_ALPHA
ownerdraw CG_PLAYER_WEAPON_AMMO_CLIP_GRAPHIC
visible 1
decoration
}
itemDef
{
name "ammoStock"
rect (WEAPINFO_X - 30) (WEAPINFO_Y + 34) 1 1
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_OBJECTIVE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
ownerdraw CG_PLAYER_WEAPON_AMMO_STOCK
visible 1
decoration
}
itemDef
{
name "offhandFragIcon"
rect (WEAPINFO_X -36) (WEAPINFO_Y -5) 24 24
forecolor 1 1 1 HUD_ALPHA
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "hud_us_grenade" // default texture
visible 1
decoration
}
itemDef
{
name "offhandSmokeIcon"
rect (WEAPINFO_X -66) (WEAPINFO_Y -5) 24 24
forecolor 1 1 1 HUD_ALPHA
ownerdraw CG_OFFHAND_WEAPON_ICON_SMOKEFLASH
background "hud_us_smokegrenade" // default texture
visible 1
decoration
}
itemDef
{
name "offHandSmokeAmmo"
rect (WEAPINFO_X -45) (WEAPINFO_Y +20) 25 25
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_OBJECTIVE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
ownerdraw CG_OFFHAND_WEAPON_AMMO_SMOKEFLASH
visible 1
decoration
}
itemDef
{
name "offHandFragAmmo"
rect (WEAPINFO_X -14) (WEAPINFO_Y +20) 25 25
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_OBJECTIVE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
ownerdraw CG_OFFHAND_WEAPON_AMMO_FRAG
visible 1
decoration
}
itemDef
{
name "weapname"
rect (WEAPINFO_X - 40) (WEAPINFO_Y + 20) 1 1
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textfont UI_FONT_OBJECTIVE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
ownerdraw CG_PLAYER_WEAPON_NAME
// visible when ( dvarBool( hiDef ) == 1 );
visible 1
decoration
}
itemDef
{
name "lowammowarning"
// rect -10 15 100 30 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
rect -50 2 100 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
textfont UI_FONT_DEFAULT
textscale TEXTSIZE_SMALL
textalign (ITEM_ALIGN_CENTER | ITEM_ALIGN_MIDDLE)
textstyle ITEM_TEXTSTYLE_SHADOWED
forecolor 1 1 1 HUD_ALPHA
//background "white"
ownerdraw CG_PLAYER_WEAPON_LOW_AMMO_WARNING
visible 1
decoration
}
}
menuDef
{
name "heatinfo"
rect 0 0 0 0 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
fullScreen 0
visible 1
itemDef
{
name "heaticon"
rect -96 -85 80 40
forecolor 1 1 1 1
ownerdraw CG_PLAYER_HEAT_VALUE
visible when( !inkillcam() && dvarBool( ammoCounterHide ) == 0 && !flashbanged() && !ui_active() && dvarint( ui_hud_hardcore ) == 0 && NOT_SPECTATING );
decoration
}
}
// Full Screen Map for location selection
#define FULL_SCREEN_MAP_WIDTH 400
#define FULL_SCREEN_MAP_HEIGHT 400
menuDef
{
name "FullScreenMap"
rect -100 -100 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
fullScreen 0
visible 1
#define FSM_VISIBILITY (selecting_location() && NOT_SPECTATING)
itemDef
{
name "map_backdrop"
style WINDOW_STYLE_SHADER
rect -200 -200 (FULL_SCREEN_MAP_WIDTH+200) (FULL_SCREEN_MAP_HEIGHT+200) HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
forecolor 0.1 0.1 0.1 0.7
exp material( "menu_black_box_faded" )
visible when( FSM_VISIBILITY );
decoration
}
itemDef
{
name "map_map"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
background "compass_map_default"
ownerdraw CG_PLAYER_FULLMAP_MAP
visible when( FSM_VISIBILITY );
decoration
}
itemDef
{
name "map_locator"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
background "compass_map_default"
ownerdraw CG_PLAYER_FULLMAP_LOCATION_SELECTOR
visible when( FSM_VISIBILITY && ( isartillery() || issquadleader() ) );
decoration
}
// Vehicles
itemDef
{
name "mapvehicles"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
ownerdraw CG_PLAYER_FULLMAP_VEHICLES
visible when( FSM_VISIBILITY );
}
// Objective pointers
itemDef
{
name "mappointers"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
background "objective_line"
ownerdraw CG_PLAYER_FULLMAP_POINTERS
visible when( FSM_VISIBILITY );
decoration
}
// Friendlies pointers
itemDef
{
name "mapfriendlies"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
ownerdraw CG_PLAYER_FULLMAP_FRIENDS
visible when( FSM_VISIBILITY );
}
// Friendlies pointers
itemDef
{
name "mapenemies"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
ownerdraw CG_PLAYER_FULLMAP_ENEMIES
visible when( FSM_VISIBILITY );
}
// Player direction indicator
itemDef
{
name "mapplayer"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
background "compassping_player"
ownerdraw CG_PLAYER_FULLMAP_PLAYER
visible when( FSM_VISIBILITY );
}
// Squad Objective
itemDef
{
name "mapsquadobjective"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
ownerdraw CG_PLAYER_FULLMAP_SQUAD_OBJECTIVE
visible when( FSM_VISIBILITY );
}
// Artillery Icon
itemDef
{
name "mapartilleryicon"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
ownerdraw CG_PLAYER_FULLMAP_ARTILLERY_ICON
visible when( FSM_VISIBILITY );
}
// Dogs
itemDef
{
name "mapdogs"
rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
forecolor 1 1 1 1
ownerdraw CG_PLAYER_FULLMAP_DOGS
visible when( FSM_VISIBILITY );
}
//// border
//itemDef
//{
// name "mapborder"
// rect 0 0 FULL_SCREEN_MAP_WIDTH FULL_SCREEN_MAP_HEIGHT
// forecolor 1 1 1 1
// background "map_border"
// ownerdraw CG_PLAYER_FULLMAP_BORDER
// visible when( FSM_VISIBILITY );
// decoration
//}
// instruction
itemDef
{
name "airstrikeinstruction"
rect 100 -60 20 20
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_CENTER
textscale 0.4
forecolor 1 1 1 1
text "@PLATFORM_PRESS_TO_SET_AIRSTRIKE"
visible when( FSM_VISIBILITY && isartillery() );
decoration
}
//instruction for squad command location selection
itemDef
{
name "squadattack"
rect -145 240 20 20
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale 0.3
forecolor 1 1 1 1
text "@PLATFORM_SQUAD_ATTACK"
visible when (( FSM_VISIBILITY && issquadleader() ) && (!isartillery())) ;
decoration
}
itemDef
{
name "squadcancel"
rect -145 260 20 20
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale 0.3
forecolor 1 1 1 1
text "@PLATFORM_SQUAD_CANCEL"
visible when (( FSM_VISIBILITY && issquadleader() ) && (!isartillery())) ;
decoration
}
itemDef
{
name "squadback"
rect -145 280 20 20
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale 0.3
forecolor 1 1 1 1
text "@PLATFORM_SQUAD_BACK"
visible when( FSM_VISIBILITY );
decoration
}
#define UI_MAP_NAME "@"+tablelookup("mp/mapsTable.csv",0,dvarString(mapname),3)
itemDef
{
name "MapName"
rect -80 -80 100 100
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale 0.4
forecolor 1 1 1 1
exp text (UI_MAP_NAME);
visible when( FSM_VISIBILITY );
decoration
}
}
#define DPAD_BASE_SIZE 28
#define DPAD_BASE_SIZE_HALF 14
#define DPAD_ICON_Y -1//3
#define DPAD_LABEL_Y 40//44
#define DPAD_ICON_SPACING 60
menuDef
{
name "DPad"
rect BOTTOM_RECT_X (BOTTOM_RECT_Y-42) 25 25 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
exp rect Y( (BOTTOM_RECT_Y-42) - (ONLINEGAME * ONLINEGAME_OFFSET) );
fullScreen 0
visible when( !inkillcam() && !flashbanged() && !ui_active() && !scoped() && (dvarString( createfx ) != "on") && dvarint( ui_hud_hardcore ) == 0 && NOT_SPECTATING );
itemDef // Up
{
name "slot1"
rect -DPAD_BASE_SIZE_HALF DPAD_ICON_Y DPAD_BASE_SIZE DPAD_BASE_SIZE
ownerdraw CG_PLAYER_ACTIONSLOT_1
forecolor 1 1 1 HUD_ALPHA
visible 1
decoration
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
textfont UI_FONT_OBJECTIVE
}
itemDef
{
rect 0 DPAD_LABEL_Y 1 1
exp text ( "[" + KeyBinding( "+actionslot 1" ) + "]" );
forecolor 1 1 1 0
exp forecolor A ( HUD_ALPHA * HudFade( "dpad" ) )
textfont UI_FONT_OBJECTIVE
textscale 0.25
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWED
visible when( ActionSlotUsable( 1 ) )
decoration
}
itemDef // Left
{
name "slot3"
rect (-DPAD_ICON_SPACING - DPAD_BASE_SIZE) DPAD_ICON_Y DPAD_BASE_SIZE DPAD_BASE_SIZE
ownerdraw CG_PLAYER_ACTIONSLOT_3
forecolor 1 1 1 HUD_ALPHA
visible 1
decoration
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
textfont UI_FONT_DEFAULT
}
itemDef
{
rect (-DPAD_ICON_SPACING - DPAD_BASE_SIZE_HALF) DPAD_LABEL_Y 1 1
exp text ( "[" + KeyBinding( "+actionslot 3" ) + "]" );
forecolor 1 1 1 0
exp forecolor A ( HUD_ALPHA * HudFade( "dpad" ) )
textfont UI_FONT_OBJECTIVE
textscale 0.25
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWED
visible when( ActionSlotUsable( 3 ) )
decoration
}
itemDef // Right
{
name "slot4"
rect DPAD_ICON_SPACING DPAD_ICON_Y DPAD_BASE_SIZE DPAD_BASE_SIZE
ownerdraw CG_PLAYER_ACTIONSLOT_4
forecolor 1 1 1 HUD_ALPHA
visible 1
decoration
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
textfont UI_FONT_DEFAULT
}
itemDef
{
rect (DPAD_ICON_SPACING + DPAD_BASE_SIZE_HALF) DPAD_LABEL_Y 1 1
exp text ( "[" + KeyBinding( "+actionslot 4" ) + "]" );
forecolor 1 1 1 0
exp forecolor A ( HUD_ALPHA * HudFade( "dpad" ) )
textfont UI_FONT_OBJECTIVE
textscale 0.25
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWED
visible when( ActionSlotUsable( 4 ) )
decoration
}
}
// Local Talking Status
menuDef
{
name "amitalking"
rect 116 22 32 32 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
fullScreen 0
visible when( dvarint( ui_hud_hardcore ) == 0 );
itemDef
{
name "talkingRect"
rect 0 0 26 26
forecolor 1 1 1 1
textscale 0.4
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw UI_AMITALKING
visible 1
decoration
}
}
// Remote Talking Status
menuDef
{
name "talkers"
rect 0 120 24 24 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
fullScreen 0
visible when( dvarint( ui_hud_hardcore ) == 0 );
itemDef
{
name "talker1Rect"
rect 0 0 24 24
forecolor 1 1 1 1
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_TALKER1
visible 1
decoration
}
itemDef
{
name "talker2Rect"
rect 0 24 24 24
forecolor 1 1 1 1
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_TALKER2
visible 1
decoration
}
itemDef
{
name "talker3Rect"
rect 0 48 24 24
forecolor 1 1 1 1
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_TALKER3
visible 1
decoration
}
itemDef
{
name "talker4Rect"
rect 0 72 24 24
forecolor 1 1 1 1
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_TALKER4
visible 1
decoration
}
}
menuDef
{
name "killcam"
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible when ( inkillcam() );
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 0 640 112 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
background "white"
forecolor .49 .05 .03 0.5
visible 1
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 368 640 112 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
background "white"
forecolor .49 .05 .03 0.5
visible 1
decoration
}
itemDef
{
rect 0 45 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 0
exp text ( "@MP_KILLCAM" );
textfont UI_FONT_OBJECTIVE
textscale 0.90
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
visible 1
decoration
}
}
// Center obituary (you killed/were killed by)
menuDef
{
name "CenterObituary"
rect 0 150 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
fullScreen 0
visible 1
itemDef
{
name "chRect"
rect 0 0 0 0
exp rect Y( 0 - (ONLINEGAME * ONLINEGAME_OFFSET) );
textscale TEXTSIZE_DEFAULT
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_CENTER_MESSAGE
forecolor 1 1 1 HUD_ALPHA
visible 1
decoration
}
}
// Score Bar
menuDef
{
name "scorebar"
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible when ( ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && (dvarString( "g_gametype" ) != "twar") && !inkillcam() && NOT_SPECTATING && !menuisopen( background_main ) && !menuisopen( background_systemlink ) && !menuisopen( scoreboard )) && dvarInt( ui_hud_hardcore ) == 0 && (dvarInt( "ui_score_bar" ) || team( name ) == "TEAM_SPECTATOR" || (dvarInt( "ui_timelimit" ) > 0 && timeLeft() < 0) || (timeLeft() >= 0 && (timeLeft() % 60 < 5 || timeLeft() < 60)) || (timeLeft() < 0 && (timeLeft() % 60 > (0-5))) || (dvarInt( "ui_scorelimit" ) > 0 && max( marinesfield( score ), opforfield( score ) ) / dvarInt( "ui_scorelimit" ) > 0.75 ) ) );
#define BARWIDTH 400
itemDef
{
style WINDOW_STYLE_SHADER
rect (-BARWIDTH/2) 3 BARWIDTH 18 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
background "line_horizontal"
forecolor 0 0 0 1
visible 1
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_SCORE_WINNING", team( score ), otherteam( score ) ) );//exp text( "Winning " + team( score ) + " - " + otherteam( score ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 0.3 1 0.3 1
visible when( team( score ) > otherteam( score ) )
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_SCORE_LOSING", otherteam( score ), team( score ) ) );//exp text( "Losing " + otherteam( score ) + " - " + team( score ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 0.3 0.3 1
visible when( team( score ) < otherteam( score ) )
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_SCORE_TIED", team( score ), otherteam( score ) ) );//exp text( "Tied " + team( score ) + " - " + otherteam( score ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 0.3 1
visible when( team( score ) == otherteam( score ) )
decoration
}
}
// War flag-status bar
menuDef
{
name "war_statusbar"
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && (dvarString( "g_gametype" ) == "twar") && !inkillcam() && NOT_SPECTATING && !menuisopen( background_main ) && !menuisopen( background_systemlink ) && !menuisopen( scoreboard ) && (dvarInt( ui_hud_hardcore ) == 0) && dvarInt( "ui_war_status_bar" ) );
itemDef
{
style WINDOW_STYLE_SHADER
rect (-BARWIDTH/2) 3 BARWIDTH 18 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
background "line_horizontal"
forecolor 0 0 0 1
visible 1
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_WAR_STATUS_WERE_RAISING", dvarString( "war_current_flag_callsign" ) ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 0.3 1 0.3 1
visible when( team( name ) == "TEAM_ALLIES" && dvarString( "war_status_bar" ) == (team( name ) + "_taking") )
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_WAR_STATUS_WERE_RAISING", dvarString( "war_current_flag_callsign" ) ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 0.3 1 0.3 1
visible when( team( name ) == "TEAM_AXIS" && dvarString( "war_status_bar" ) == (team( name ) + "_taking") )
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_WAR_STATUS_CONTESTED", dvarString( "war_current_flag_callsign" ) ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 0.3 1
visible when( dvarString( "war_status_bar" ) == "contested" )
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_WAR_STATUS_TAKING", "@MPUI_" + dvarString( "scr_axis" ), dvarString( "war_current_flag_callsign" ) ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 0.3 0.3 1
visible when( team( name ) == "TEAM_ALLIES" && dvarString( "war_status_bar" ) == (otherteam( name ) + "_taking") )
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( "@MENU_WAR_STATUS_TAKING", "@MPUI_" + dvarString( "scr_allies" ), dvarString( "war_current_flag_callsign" ) ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 0.3 0.3 1
visible when( team( name ) == "TEAM_AXIS" && dvarString( "war_status_bar" ) == (otherteam( name ) + "_taking") )
decoration
}
}
// Generice message status bar
menuDef
{
name "generic_status_bar"
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible when ( (team( name ) == "TEAM_ALLIES" || team( name ) == "TEAM_AXIS") && !inkillcam() && NOT_SPECTATING && !menuisopen( background_main ) && !menuisopen( background_systemlink ) && !menuisopen( scoreboard ) && (dvarInt( ui_hud_hardcore ) == 0) && dvarInt( "ui_generic_status_bar" ) && !dvarInt( "ui_war_status_bar" ) && !dvarInt( "ui_score_bar" ) );
itemDef
{
style WINDOW_STYLE_SHADER
rect (-BARWIDTH/2) 3 BARWIDTH 18 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
background "line_horizontal"
forecolor 0 0 0 1
visible 1
decoration
}
itemDef
{
rect 0 0 1 1 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
origin 0 20
exp text( locString( dvarString( "generic_status_bar_message" ) ) );
textfont UI_FONT_OBJECTIVE
textscale 0.35
textalign ITEM_ALIGN_CENTER
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 1
visible when( dvarString( "generic_status_bar_message" ) != "" )
decoration
}
}
// game messages
menuDef
{
name "gamemessages"
// (todo: use VERTICAL_ALIGN_TOP in SP)
rect 6 -65 10 10 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
fullScreen 0
visible when( !inkillcam() );
itemDef
{
rect 0 0 0 0
exp rect Y( 0 - (ONLINEGAME * ONLINEGAME_OFFSET) );
type ITEM_TYPE_GAME_MESSAGE_WINDOW
gamemsgwindowindex 0
gamemsgwindowmode MODE_BOTTOMUP_ALIGN_BOTTOM
textfont UI_FONT_DEFAULT
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale (TEXTSIZE_SMALL*0.75)
visible when ( dvarint( ui_hud_obituaries ) == 1 && !ui_active() );
}
}
menuDef
{
name "boldgamemessages"
// (todo: use VERTICAL_ALIGN_TOP in SP, origin 0 180)
rect 0 -60 10 10 HORIZONTAL_ALIGN_CENTER_SAFEAREA VERTICAL_ALIGN_CENTER_SAFEAREA
fullScreen 0
visible when( !inkillcam() );
itemDef
{
origin 0 0
type ITEM_TYPE_GAME_MESSAGE_WINDOW
gamemsgwindowindex 1
gamemsgwindowmode MODE_BOTTOMUP_ALIGN_BOTTOM
textfont UI_FONT_OBJECTIVE
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_CENTER
textscale 0.417 // SP: 0.5
visible when ( dvarint( ui_hud_obituaries ) == 1 && !ui_active() );
}
}
menuDef
{
name "subtitles"
rect 200 400 10 10 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
fullScreen 0
visible when( !inkillcam() );
itemDef
{
origin 0 0
type ITEM_TYPE_GAME_MESSAGE_WINDOW
gamemsgwindowindex 2
gamemsgwindowmode MODE_BOTTOMUP_ALIGN_BOTTOM
textfont UI_FONT_DEFAULT
textstyle ITEM_TEXTSTYLE_SHADOWED
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
visible when ( dvarint( ui_hud_obituaries ) == 1 && !ui_active() && dvarint( ui_hud_hardcore ) == 0 );
}
}
// debug hit location
menuDef
{
name "hitloc"
rect 0 0 0 0 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
fullScreen 0
visible 1
#define HITLOCSINGLE( INDEX, YPOS ) \
itemDef \
{ \
rect 0 -50 1 1 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM \
origin 0 YPOS \
exp text ( dvarstring( "ui_hitloc_damage_" + INDEX ) ); \
textfont UI_FONT_OBJECTIVE \
textscale 0.3 \
textalign ITEM_ALIGN_RIGHT \
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE \
visible when ( dvarstring( "ui_hitloc_" + INDEX ) != "" && dvarint( "ui_hidehitlocs" ) == 0 ) \
decoration \
} \
itemDef \
{ \
rect -30 -50 1 1 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM \
origin 0 YPOS \
exp text ( dvarstring( "ui_hitloc_" + INDEX ) ); \
textfont UI_FONT_OBJECTIVE \
textscale 0.3 \
textalign ITEM_ALIGN_RIGHT \
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE \
visible when ( dvarint( "ui_hidehitlocs" ) == 0 ) \
decoration \
}
HITLOCSINGLE( 0, 0 )
HITLOCSINGLE( 1, -15 )
HITLOCSINGLE( 2, -30 )
HITLOCSINGLE( 3, -45 )
HITLOCSINGLE( 4, -60 )
HITLOCSINGLE( 5, -75 )
}
// Hold breath hint
menuDef
{
name "HoldBreathHint"
rect 0 -130 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
fullScreen 0
visible when ( !adsjavelin() && dvarInt( ui_hud_hardcore ) == 0 && !inkillcam() && NOT_SPECTATING );
itemDef
{
name "chRect"
rect 0 0 0 0
textfont UI_FONT_NORMAL
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
ownerdraw CG_HOLD_BREATH_HINT
visible 1
decoration
}
}
// Safe area
menuDef
{
name "safeareaa"
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
fullScreen 0
visible 1
#include "ui/safearea.menu"
}
// Tank status
menuDef
{
name "tankstatus"
rect -75 -68 64 64 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
fullScreen 0
visible when( !inkillcam() && dvarBool( ammoCounterHide ) == 0 && !flashbanged() && !ui_active() && dvarint( ui_hud_hardcore ) == 0 && NOT_SPECTATING );
itemDef
{
name "tank_body_mp"
rect 0 0 64 64 // 64x64
forecolor 1 1 1 1
background "hud_tank_body_mp"
ownerdraw CG_TANK_BODY_DIR
visible 1
decoration
}
itemDef
{
name "tank_tread_left_mp"
rect 0 0 64 64 // 64x64
forecolor 1 1 1 1
background "hud_tank_tread_left_mp"
ownerdraw 91 //CG_TANK_LEFT_TREAD
visible 1
decoration
}
itemDef
{
name "tank_tread_right_mp"
rect 0 0 64 64 // 64x64
forecolor 1 1 1 1
background "hud_tank_tread_right_mp"
ownerdraw 92 //CG_TANK_RIGHT_TREAD
visible 1
decoration
}
itemDef
{
name "tank_driver_seat_mp"
rect 0 0 64 64 // 64x64
forecolor 1 1 1 1
background "hud_tank_driver_seat_mp"
ownerdraw 93 //CG_TANK_DRIVER_SEAT
visible 1
decoration
}
itemDef
{
name "tank_gunner_seat_mp"
rect 32 32 64 64 // 64x64
forecolor 1 1 1 1
background "hud_tank_gunner_seat_mp"
ownerdraw 94 //CG_TANK_GUNNER_SEAT
visible 1
decoration
}
itemDef
{
name "tank_turret_mp"
rect 32 32 64 64 // 64x64
forecolor 1 1 1 1
background "hud_tank_turret_mp"
ownerdraw CG_TANK_BARREL_DIR
visible 1
decoration
}
itemDef
{
name "tank_weapon_reload_mp"
rect -108 22 96 48 // 128x64
forecolor 1 1 1 1
background "hud_tank_weapon_reload_empty_mp"
ownerdraw 9 //CG_VEHICLE_WEAPON_RELOAD
visible 1
decoration
}
itemDef
{
name "tank_weapon_reloaded_mp"
rect -108 22 96 48 // 128x64
forecolor 1 1 1 1
background "hud_tank_weapon_reload_fill_mp"
ownerdraw 10 //CG_VEHICLE_WEAPON_RELOADED
visible 1
decoration
}
}
menuDef
{
name "tank_turret_heat_info"
rect -75 -75 80 40 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
fullScreen 0
visible 1
itemDef
{
name "heaticon"
rect -100 32 80 40
forecolor 1 1 1 1
ownerdraw 8 //CG_VEHICLE_PLAYER_HEAT_VALUE
visible when( dvarint( ui_hud_hardcore ) == 0 );
decoration
}
}
menuDef
{
name "deadscreen"
fullScreen 0
rect 0 0 640 480
focusColor COLOR_FOCUSED
soundloop ""
visible 1
// Death quote
itemDef
{
name quote
dvar "ui_deadquote"
textscale TEXTSIZE_DEFAULT
type ITEM_TYPE_TEXT
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 80 200 480 20
textalign ITEM_ALIGN_CENTER
textaligny 0 // point to center around
textalignx 0 // point to center around
ownerdraw CG_DEADQUOTE
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name hud_grenadeicon
rect 315 300 60 60
origin 0 0
style WINDOW_STYLE_SHADER
background "hud_grenadeicon"
dvartest "ui_grenade_death"
showdvar { "1" }
visible 1
decoration
}
itemDef
{
name hud_grenadepointer
rect 320 270 50 25
origin 0 0
style WINDOW_STYLE_SHADER
background "hud_grenadepointer"
dvartest "ui_grenade_death"
showdvar { "1" }
visible 1
decoration
}
}
}