Serious CTF HUD (Missing little details)

13 replies [Last post]
f8*BiT
wrybit's picture
Offline
Joined: Jan 2011
Posts:

Hy,

I created a HUD for serious CTF players which wish to focus Happy

It was inspired by OSP/BattleX and I used the e+ examples to build it.
Other than in the examples I tried to document it and order it well.

But: How do I add the nicks of the Flag carrier to the HUD

It's not documented .. and I fear it's not in the mod?
It's in the default Q3 version and in all other MODs!

Feel free to use the HUD and/or give Feedback.

Known Issues:

  • Currently works only in 16:9 and not in 4:3.
  • Flag Carrier Names get not shown. (e+ not implemented!)
  • Standard Chat Message get shown in Team Chat Message place. (e+ hud bug!)

Greez BiT

###############################################
# Serious CTF HUD by F8*BiT (wrybit@yahoo.de) #
# Inspired by default HUDs of OSP/BattleX     #
###############################################
 
!DEFAULT              { font xp; fontsize 8 10; anchors 0; }
 
##############################################
# MSG                                        #
##############################################
 
#Vote MSG
VoteMessageWorld      { rect 170 50 300 25; font xp; fontsize 25; textstyle 1; textalign C; color 1 1 0 1; anchors 9; }
VoteMessageArena      { rect 170 65 300 25; font xp; fontsize 25; textstyle 1; textalign C; anchors 9; }
 
#Messages
WarmupInfo            { rect 438 25 200 12;  font xp; fontsize 8 12; textstyle 1; textalign R; color 0.6 0.8 1 0.8; anchors 3; }
RankMessage           { rect 170 70 300 12; font xp; time 2000; fontsize 10 12; textstyle 1; textalign C; }
FragMessage           { rect 170 50 300 12; font xp; time 2000; fontsize 10 12; textstyle 1; textalign C; }
AmmoMessage           { rect 290 360 60 30;  font xp; fontsize 20 20; textstyle 1; textalign C; color 0.84 0 0 0.84; }
 
#In Spectator
SpecMessage           { rect 270 5 100 10;   font xp; fontsize 8 10; textstyle 1; textalign C; color 1 0.8 0.2 1; }
FollowMessage         { rect 170 20 300 14; font xp; fontsize 12 14; textstyle 1; textalign C; color 1 1 1 0.7; anchors 8; }
 
#Infos at Players
TargetName            { rect 150 236 150 12; font xp; time 700; fontsize 8 10; textstyle 1; textalign R; color 1 1 1 0.5; }
TargetStatus          { rect 340 236 150 12; font xp; time 700; fontsize 8 10; textstyle 1; textalign L; color 0.49 1 1 0.5; }
 
#While spec. show GameType (Capture the Flag, Freeze Tag, ...)
GameType              { rect 438 4 200 12; font xp; fontsize 10 12; textstyle 1; textalign R; color 0 0.47 0.8 0.8; anchors 2; }
 
##############################################
# Chats                                      #
##############################################
 
#Chat Text MSG (xp_drawNotify=1)
Console               { rect 0 0 640 48; monospace 0; time 2500; font xp; textalign L; fontsize 7 9; textstyle 1; anchors 9; }
 
#Team Text MSG (xp_floodProtect=0)
Chat1                 { rect 56 390 300 9; font xp; time 5000; fontsize 7 9; textstyle 1; color 1 1 1 1; anchors 8; }
Chat2                 { rect 56 400 300 9; font xp; time 5000; fontsize 7 9; textstyle 1; color 1 1 1 1; anchors 8; }
Chat3                 { rect 56 410 300 9; font xp; time 5000; fontsize 7 9; textstyle 1; color 1 1 1 1; anchors 8; }
Chat4                 { rect 56 420 300 9; font xp; time 5000; fontsize 7 9; textstyle 1; color 1 1 1 1; anchors 8; }
 
##############################################
# InView Overlays                            #
##############################################
 
#Avalabil Weapons
WeaponList            { rect 2 282 52 16; bgcolor 0 0 0 0.25; fill; font xp; fontsize 16; textstyle 1; textalign L; color 1 1 1 0.5; anchors 14; }
 
#Attacker Icon
AttackerIcon          { rect 518 2 100 100; time 3500; anchors 2; }
AttackerName          { rect 400 2 200 12; time 3500; textalign R; anchors 2; }
 
#Show Powerup Icons
PowerUp4_Time         { rect 586 285 32 20; bgcolor 0 0 0 0.25; fill; font xp; fontsize 20; textstyle 1; textalign R; color 1 1 1 0.8; anchors 2; }
PowerUp4_Icon         { rect 618 285 20 20; bgcolor 0 0 0 0.25; fill; textalign R; Draw3D 0; anchors 2; }
PowerUp3_Time         { rect 586 310 32 20; bgcolor 0 0 0 0.25; fill; font xp; fontsize 20; textstyle 1; textalign R; color 1 1 1 0.8; anchors 2; }
PowerUp3_Icon         { rect 618 310 20 20; bgcolor 0 0 0 0.25; fill; textalign R; Draw3D 0; anchors 2; }
PowerUp2_Time         { rect 586 335 32 20; bgcolor 0 0 0 0.25; fill; font xp; fontsize 20; textstyle 1; textalign R; color 1 1 1 0.8; anchors 2; }
PowerUp2_Icon         { rect 618 335 20 20; bgcolor 0 0 0 0.25; fill; textalign R; Draw3D 0; anchors 2; }
PowerUp1_Time         { rect 586 360 32 20; bgcolor 0 0 0 0.25; fill; font xp; fontsize 20; textstyle 1; textalign R; color 1 1 1 0.8; anchors 2; }
PowerUp1_Icon         { rect 618 360 20 20; bgcolor 0 0 0 0.25; fill; textalign R; Draw3D 0; anchors 2; }
 
#TextOverlay (cg_drawTeamOverlay=1)
Team8                 { rect 340 350 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team7                 { rect 340 360 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team6                 { rect 340 370 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team5                 { rect 340 380 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team4                 { rect 340 390 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team3                 { rect 340 400 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team2                 { rect 340 410 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
Team1                 { rect 340 420 300 9; fontsize 7 9; textstyle 1; textalign R; color T; bgcolor 1 1 1 0.15; anchors 6; }
 
##############################################
# Footer Main HUD (left to right)            #
##############################################
 
#BG
PreDecorate           { rect 0 442 642 38; color T;	bgcolor 1 1 1 0.15;	fill; anchors 14; }
 
#Flag/Frag NR
FlagStatus_OWN        { rect  2 445 20 15; color T ; bgcolor 0 0 0 1; anchors 8; }
PreDecorate           { rect 24 445 30 15; color T; bgcolor 0 0 0 0.8; fill; anchors 8; }
Score_OWN             { rect 26 445 30 15; font xp; fontsize 14 16; textstyle 1; textalign L; anchors 8; }
FlagStatus_NME        { rect  2 462 20 15; color E ; bgcolor 0 0 0 1; anchors 8; }
PreDecorate           { rect 24 462 30 15; color E; bgcolor 0 0 0 0.8; fill; anchors 8; }
Score_NME             { rect 26 462 30 15; font xp; fontsize 14 16; textstyle 1; textalign L; anchors 8; }
 
#Time + Limit
GameTime              { rect 56 445 41 15; font xp; fontsize 14 16; textstyle 1; textalign L; color 1 1 1 1; bgcolor 1 1 1 0.1; fill; anchors 8; }
Score_Limit           { rect 56 462 41 15; font xp; fontsize 14 16; textstyle 1; textalign L; color 1 1 1 1; bgcolor 1 1 1 0.1; fill; anchors 8; }
 
#Health icon+bar
PreDecorate           { rect 140 445 130 14; bgcolor 1 1 1 0.2; fill; anchors 14; }
PreDecorate           { rect 140 463 130 14; bgcolor 1 1 1 0.2; fill; anchors 14; }
StatusBar_HealthBar   { rect 140 445 130 32; color 0 0 0 0; textalign R; doublebar; anchors 14; }
PreDecorate           { rect 88 446 14 14; image "hud/misc/health"; color 0 0 0 0.5;	anchors 4; }
PreDecorate           {	rect 87 445 14 14; image "hud/misc/health"; color T;	anchors 4; }
StatusBar_HealthCount { rect 85 462 16 22; font numbers; fontsize 12 16; textalign R; textstyle 1; anchors 4; }
 
#Current Weapon
StatusBar_AmmoIcon    { rect 276 450 24 24; bgcolor 1 1 1 0; fill; anchors 4; }
StatusBar_AmmoCount   { rect 302 450 70 24; font numbers; fontsize 20 24; textstyle 2; textalign L; color 0 1 1 1; bgcolor 1 1 1 0; fill; anchors 4; }
 
#Armor icon+bar
PreDecorate           { rect 370 445 130 14; bgcolor 1 1 1 0.2; fill; anchors 14; }
PreDecorate           { rect 370 463 130 14; bgcolor 1 1 1 0.2; fill; anchors 14; }
StatusBar_ArmorBar    { rect 370 445 130 32; color 0 0 0 0; textalign L; doublebar; anchors 14; }
PreDecorate           { rect 539 446 15 15; image "hud/misc/armor"; color 0 0 0 0.5; anchors 4; }
PreDecorate           { rect 538 445 15 15; image "hud/misc/armor"; color T; anchors 4; }
StatusBar_ArmorCount  { rect 540 462 16 22;	font numbers;	fontsize 12 16; textalign L; textstyle 1; anchors 4; }
 
#Info Text - Ping(cg_lagometer=1) / Speed(xp_drawSpeed=1) / FPS(cg_drawFPS=1)
NetGraphPing          { rect 572 445 31 10; bgcolor 1 1 1 0.1;	fill; color 1 1 1 0.3; font xp; fontsize 8 10; textstyle 1; textalign R; anchors 2; }
PlayerSpeed           { rect 572 456 31 10; bgcolor 1 1 1 0.1;	fill; color 1 1 1 0.3; font xp; fontsize 8 10; textstyle 1; textalign R; anchors 2; }
FPS                   { rect 572 467 31 10; bgcolor 1 1 1 0.1;	fill; color 1 1 1 0.3; font xp; fontsize 8 10; textstyle 1; textalign R; anchors 2; }
 
#lag-o-meter (cg_lagometer=1)
NetGraph              { rect 605 445 33 33; bgcolor 0 0 0 0.35; fill; anchors 2; }
 
#TDM and other crap
#TeamIcon_OWN         { }
#TeamCount_OWN        { rect 615 451 13 11; font xp; fontsize 8 10; textstyle 1; textalign C; color 1 1 1 0.7 ; bgcolor 0 0 0 0; fill; anchors 6; }
#TeamIcon_NME         { }
#TeamCount_NME        { rect 615 466 13 11; font xp; fontsize 8 10; textstyle 1; textalign C; color 1 1 1 0.7 ; bgcolor 0 0 0 0; fill; anchors 6; }

Login or register to view attached files

Inspiring people to share - TYPO3.

CSM> >HOLLOW
Piranha's picture
Offline
Joined: Apr 2010
Posts:
Re: Serious CTF HUD (Missing little details)

yo man thats a nice hud good work Happy

i wonder maybe can u move a couple of things around? (i have shown u on pic)

also where does frag message appear in centre of your screen? this would be perfect Happy

j wrote:

..build a robot who control ppl? we have mow!

f8*BiT
wrybit's picture
Offline
Joined: Jan 2011
Posts:
Re: Serious CTF HUD (Missing little details)

THX. Did you tried it? Happy

Sure I (or you) could do ..

... but I tested it already a lot and this is the
less irritating and most focused solution I found.
You don't need to screen the whole screen, it's
just all at the bottom. At least for me, thats pfk.

There are also some MSG which appear on the spots
where you wished to move the stuff .. I fear it
could get than to crowed than.

Do you know, how to show the Nick of the Flag Carrier?

Greez BiT

Inspiring people to share - TYPO3.

epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: Serious CTF HUD (Missing little details)

Right in this moment there is no Flag name Carrier section implemented. Consider that this is the 1st implementation of the HUDs in e+ mod and not all the features from other mods are in yet.

Can you specify how the "Flag carrier's name" section was named in other mods Hud ?
____________
epsislow


f8*BiT
wrybit's picture
Offline
Joined: Jan 2011
Posts:
Re: Serious CTF HUD (Missing little details)
epsiplayer wrote:

Right in this moment there is no Flag name Carrier section implemented. Consider that this is the 1st implementation of the HUDs in e+ mod and not all the features from other mods are in yet.

.. that sounds like .. it will be implemented .. consider me as beta tester Happy

Inspiring people to share - TYPO3.

epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: Serious CTF HUD (Missing little details)

well.. im not a e+ dev so we wait for the confirmation of an e+ dev about this.
but i can tell you that the flag carrier name is not here.

_________
epsislow


f8*BiT
wrybit's picture
Offline
Joined: Jan 2011
Posts:
Re: Serious CTF HUD (Missing little details)
epsiplayer wrote:

Can you specify how the "Flag carrier's name" section was named in other mods Hud ?

Here you could see what I mean ..
http://www.youtube.com/watch?v=pCuVoXYpLXI

I don't really get your question ..?

Inspiring people to share - TYPO3.

epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: Serious CTF HUD (Missing little details)

i mean if you know: what name the Flag carrier name has in the Hud file in other mods ?
like

// Flag carrier name
FlagCarrierName { /**   **/ }

anyway i checked and i saw in osp

Client HUD Settings (requires cg_enableOSPHUD set to 1):
========================================================
(..)
ch_drawFlagNames <0-5> (default = 0)
	0 - default like id
	1 - draw flag carrier's name (but no icons)
	2 - draw flag carrier's name and the icons
	3 - draw flag carrier's name (but no icon) in the lower right
	    corner (Q3comp statusbars only)
	4 - draw flag carrier's name and icon in the lower right
	    corner (Q3comp Statusbars only)


f8*BiT
wrybit's picture
Offline
Joined: Jan 2011
Posts:
Re: Serious CTF HUD (Missing little details)

Thats exactly what I miss. Would be really necessary to have that included for CTF.

Inspiring people to share - TYPO3.

mow Q [EN]
Offline
Joined: Nov 2003
Posts:
Re: Serious CTF HUD (Missing little details)

Well, haven't played CTF in e+ now for 5 years or so, but isn't the name of carrier mentioned/marked in teamoverlay?

rUnThEoN?!
Site administrator
Skullheadq3's picture
Offline
Joined: Dec 2005
Posts:
DE Germany
Re: Serious CTF HUD (Missing little details)

weapons on left side <3 guess i gotta build myself a osp hud xD

hurrenson: "This idiot is apparently not familiar with a rail/sniper style."