There are currently 50 players online.
 
Warsow


 
 

backneed help with hud

Posted by
Post Scroll to bottom
pryzee
Member
(14 posts)

if %TEAM == #TEAM_ALPHA
setColor 0, 0, 1, 1
drawNum %TEAM_ALPHA_SCORE
endif
if %TEAM == #TEAM_BETA
setColor 0, 0, 1, 1
drawNum %TEAM_BETA_SCORE
endif

need help with the hud i want that, if im beta should be the right color blue and if im alpha should be the left color blue, but it didnt work.

MagusZero
Chaotician
(1858 posts)

So if you're on a team... it should be blue...

pryzee
Member
(14 posts)

yes but every time the left side

MagusZero
Chaotician
(1858 posts)

What I'm seeing is basically code for:

If(Team1)
blue
If(Team2)
blue

joki

Member
(49 posts)

pryzee wrote:
need help with the hud i want that, if im beta should be the right color blue and if im alpha should be the left color blue, but it didnt work.

pryzee wrote:
yes but every time the left side

I don't understand that. what do you mean with right and left?

maybe you should make a drawing for both cases (playing team alpha and playing team beta).

clownfart

aka simon
(1026 posts)

There's an example of this in the Warsow HUDs.

data0_10.pk3 /huds/inc/clownhud/scores.hud


setAlign 3 1
setCursor #WIDTH / 2, 5
moveCursor -16, 0
setSize 24, 24
setColorToTeamColor %TEAM
if %TEAM == #TEAM_ALPHA
drawNum %TEAM_ALPHA_SCORE
endif
if %TEAM == #TEAM_BETA
drawNum %TEAM_BETA_SCORE
endif
setAlign 1 1
moveCursor 32, 0
setColorToTeamColor %TEAM_ENEMY
if %TEAM == #TEAM_ALPHA
drawNum %TEAM_BETA_SCORE
endif
if %TEAM == #TEAM_BETA
drawNum %TEAM_ALPHA_SCORE
endif



Scroll to top



RSSRSSRSSRSS

Copyright © 2013 Chasseur De Bots

Warsow in social media



Warsow is an indie game developed by group of hobbyists. Please consider giving us a small donation: