arena intermission hud countdown

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2588 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-09-14 18:13:56 +00:00
parent 0df7b6f666
commit c825ed3e29
5 changed files with 60 additions and 10 deletions
+7 -5
View File
@@ -324,6 +324,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
player1->state = CS_ALIVE;
findplayerstart(player1, false, arenaspawn);
if(player1->skin!=player1->nextskin) setskin(player1, player1->nextskin);
arenaintermission = 0;
if(m_arena)
{
conoutf("new round starting... fight!");
@@ -585,11 +586,12 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
int acn = getint(p);
playerent *alive = acn<0 ? NULL : (acn==getclientnum() ? player1 : getclient(acn));
conoutf("arena round is over! next round in 5 seconds...");
if(m_botmode && acn==-2) conoutf("the bots have won the round!");
else if(!alive) conoutf("everyone died!");
else if(m_teammode) conoutf("team %s has won the round!", alive->team);
else if(alive==player1) conoutf("you are the survivor!");
else conoutf("%s is the survivor!", colorname(alive));
if(m_botmode && acn==-2) hudoutf("the bots have won the round!");
else if(!alive) hudoutf("everyone died!");
else if(m_teammode) hudoutf("team %s has won the round!", alive->team);
else if(alive==player1) hudoutf("you are the survivor!");
else hudoutf("%s is the survivor!", colorname(alive));
arenaintermission = lastmillis;
break;
}