Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Gametypes: g_gametype: 0 = FFA, 1 = Duel, 2 = Single Player (not usable), 3 = TDM, 4 = CA, 5 = CTF, 6 = One-Flag CTF = 7
- // Overload (not complete), 8 = Harvester, 9 = Freeze Tag, 10 = Domination, 11 = Attack & Defend, 12 = Red Rover
- // elementcolor: text=backcolor paint=forecolor
- // background "gfx/2d/crosshair14.tga" style 1 backcolor 0 0 0 1 visible 1
- #include "ui/menudef.h"
- /// HEALTH VALUE
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE rect 0 3 0 0
- itemDef { ownerdraw CG_PLAYER_HEALTH visible 1 textstyle 6 textscale 0.9
- addColorRange -999 0 0 0 0 0
- addColorRange 1 40 1 0.02 0 1
- addColorRange 41 80 0.9 0.02 0 1
- addColorRange 81 100 1 0.8 0 1
- addColorRange 101 299 0.25 0.25 0.25 1 // 0.5 0.5 0.5 1
- addColorRange 300 999 0.25 0.25 0.25 1 // 0 0 0 0.7 //
- rect 320 471 0 0
- }
- /// ARMOR VALUE
- itemDef { ownerdraw CG_PLAYER_ARMOR_VALUE visible 1 textstyle 6 textalign 0 textscale 0.5
- addColorRange -999 0 0 0 0 0
- addColorRange 1 50 1 0.02 0 1
- addColorRange 51 999 1 0.8 0 1
- rect 415 471 0 0
- cvartest "g_gametype" showcvar { 0 1 3 9 }
- }
- }
- // WARMUP
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- itemDef { visible 1 textstyle 2
- text "~" textscale 1
- ownerdrawflag CG_SHOW_IF_WARMUP
- rect 4 95 0 0
- }
- }
- /// OBITS
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- itemdef {
- rect 470 473 20 400
- textscale .3
- textalign ITEM_ALIGN_CENTER ownerdraw CG_PLAYER_OBIT visible 1 style 1
- }
- }
- /// CHAT AREA
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE rect 10 400 50 100 // rect here!
- itemDef {
- rect -10 -400 640 480 visible 1 style 1
- ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
- backcolor 0 0 0 0.75 }
- itemdef { ownerdraw CG_AREA_NEW_CHAT textscale 1 visible 1 }
- }
- /// TIMER CLOCK
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- itemDef { visible 1 style WINDOW_STYLE_TEAMCOLOR // BACKGROUND
- rect 190 0 130 32
- }
- itemDef {
- rect 220 27 0 0 // CLOCK
- visible 1 textstyle 2 forecolor 1 1 1 1
- textscale 0.666 ownerdraw CG_LEVELTIMER textalign 0
- }
- }
- /// ROUND COUNTDOWN 30s
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- /// ROUND TIMER -30sec-
- itemDef {
- rect 240 60 0 0
- visible 1 textscale .3 textalign 0
- ownerdraw CG_ROUNDTIMER textstyle 3 style 1 }
- }
- /// POWERUP QUAD + BATTLESUIT
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE rect 550 250 0 0 // 15 425 0 0 //
- itemDef { visible 1 ownerdraw CG_AREA_POWERUP
- rect -10 0 50 40
- textscale .8 }
- }
- /// PICKUPS TELEPORT + KAMI
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- rect 600 400 1 1
- itemDef { name "playeritem" visible 1 ownerdraw CG_PLAYER_ITEM rect 0 0 27 27 }
- itemDef { name "CTFPOWERUP" visible 1 ownerdraw CG_CTF_POWERUP rect 0 40 27 27 }
- }
- // SKILLRATING
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- // rect 600 150 0 0
- rect 576 388 0 0
- itemDef { visible 1 textstyle 0
- textscale 0.3 forecolor 1 1 1 1
- cvar "sv_skillrating"
- cvartest "ybl_skill" showcvar { 1 }
- }
- }
- // BACKGROUND ( FFA )
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- rect 0 2 0 0
- itemDef { visible 1 style 1 backcolor .23 .23 .23 1
- rect 0 2 153 16 cvartest "g_gametype" showcvar { 0 1 12 }
- }
- itemDef { visible 1 style 1 backcolor .23 .23 .23 1
- rect 0 22 153 16 cvartest "g_gametype" showcvar { 0 1 12 }
- }
- }
- /// SCOREBOARD SELF HIGHLIGHT ( FFA )
- menuDef {
- name "SelfFrameHighlights"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 0 2 0 0
- itemDef {
- cvartest "g_gametype" showcvar { 0 1 12 }
- name "SelfTLeft"
- rect 0 2 153 16
- visible 1
- backcolor .6 .6 .6 1
- style WINDOW_STYLE_FILLED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- }
- itemDef {
- cvartest "g_gametype" showcvar { 0 1 12 }
- name "SelfTLeft"
- rect 0 22 153 16
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- backcolor .6 .6 .6 1
- style WINDOW_STYLE_FILLED
- }
- }
- // BACKGROUND SHADOW 4 SCORES ( FFA )
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- rect 0 2 0 0
- itemDef { visible 1 style 1 backcolor 0 0 0 .3 // frags
- rect 123 2 30 16 cvartest "g_gametype" showcvar { 0 1 12 }
- }
- itemDef { visible 1 style 1 backcolor 0 0 0 .3 // frags
- rect 123 22 30 16 cvartest "g_gametype" showcvar { 0 1 12 }
- }
- itemDef { visible 1 style 1 backcolor 0 0 0 .3 // score
- rect 0 2 20 16 cvartest "g_gametype" showcvar { 0 1 12 }
- }
- itemDef { visible 1 style 1 backcolor 0 0 0 .3 // score
- rect 0 22 20 16 cvartest "g_gametype" showcvar { 0 1 12 }
- }
- }
- // SCOREBOARD VALUE ( FFA )
- menuDef {
- name "scores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect -3 2 0 0
- itemDef {
- name "1stplace"
- ownerdraw CG_1ST_PLACE_SCORE
- rect 10 14 140 40
- visible 1 cvartest "g_gametype" showcvar { 0 1 12 }
- textscale .24 textstyle 3
- }
- itemdef {
- name "2ndplace"
- ownerdraw CG_2ND_PLACE_SCORE
- rect 10 34 140 40
- visible 1 cvartest "g_gametype" showcvar { 0 1 12 }
- textscale .24 textstyle 3
- }
- }
- /// PLAYER COUNTER /// ( TEAM )
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- rect 15 474 0 0
- // HOME
- itemdef { textstyle 2 visible 1 ownerdraw CG_RED_CLAN_PLYRS ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
- forecolor 1 1 1 1 textscale .45 cvartest "g_gametype" showcvar { 4 9 } }
- itemdef { textstyle 2 visible 1 ownerdraw CG_BLUE_CLAN_PLYRS ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
- forecolor 1 1 1 1 textscale .45 cvartest "g_gametype" showcvar { 4 9 } }
- }
- // GUEST
- menuDef { fullScreen MENU_FALSE visible MENU_TRUE
- rect 45 474 0 0
- itemdef { visible 1 textstyle 2 ownerdraw CG_BLUE_CLAN_PLYRS ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
- forecolor 1 1 1 1 textscale .45 cvartest "g_gametype" showcvar { 4 9 } }
- itemdef {
- visible 1 textstyle 2 ownerdraw CG_RED_CLAN_PLYRS ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
- forecolor 1 1 1 1 textscale .45 cvartest "g_gametype" showcvar { 4 9 } }
- }
- /// SCOREBOARD BACKGROUND ( TEAM )
- menuDef {
- name "SelfFrameHighlights"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 2 2 0 0
- itemDef { //// MY TEAM SHADOW (TEAMCOLOR)
- name "SelfTLeft"
- rect 4 22 25 2
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- style WINDOW_STYLE_TEAMCOLOR
- }
- itemDef { //// MY TEAM SHADOW (TEAMCOLOR)
- name "SelfBLeft"
- rect 29 4 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- style WINDOW_STYLE_TEAMCOLOR
- }
- itemDef { //// ENEMY TEAM SHADOW
- name "SelfBLeft"
- rect 4 4 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- style WINDOW_STYLE_FILLED backcolor 0 0 0 .3
- }
- itemDef { //// ENEMY TEAM SHADOW
- name "SelfBLeft"
- rect 29 4 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- style WINDOW_STYLE_FILLED backcolor 0 0 0 .3
- }
- itemDef { /// BOX (ENEMY TEAM)
- name "SelfBLeft"
- rect 2 2 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- backcolor 0 0 0 1
- style WINDOW_STYLE_FILLED
- }
- itemDef { /// BOX (ENEMY TEAM)
- name "SelfBLeft"
- rect 27 2 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- backcolor 0 0 0 1
- style WINDOW_STYLE_FILLED
- }
- //// MY TEAM BOX (TEAMCOLOR)
- itemDef {
- name "SelfTLeft"
- rect 2 2 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- style WINDOW_STYLE_FILLED
- ownerdraw CG_TEAM_COLOR
- }
- itemDef {
- name "SelfBLeft"
- rect 27 2 25 20
- visible 1
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- style 1
- ownerdraw CG_TEAM_COLOR
- }
- }
- /// SCOREBOARD VALUE ( TEAM )
- menuDef {
- name "scores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect -12 3 0 0
- itemdef { // 1STPLACE VALUE
- ownerdraw CG_1ST_PLACE_SCORE
- rect -130 15 165 0
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- visible 1 textstyle 3
- textscale .2
- }
- itemdef { // 2ND PLACE VALUE
- name "2ndplace"
- ownerdraw CG_2ND_PLACE_SCORE
- rect -130 15 190 0
- cvartest "g_gametype" showcvar { 3 4 9 10 }
- visible 1 textstyle 3
- textscale .2
- }
- }
- //////// end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement