I've got:
Code:
#define TEAM_NONE 0
#define TEAM_SPEC 1
#define TEAM_T 2
#define TEAM_CT 3
#define TEAMNAME( index ) ( index == 0 ? "NONE" : ( index == 1 ? "SPEC" : ( index == 2 ? "T" : "CT" ) ) )
So I guess the IDs are
SPEC 1
T 2
CT 3
is that correct?
I'm setting the winner's ID as follows:
Code:
void GeeventManager::roundEnd( int winner ){
// quite a lot of stuff here
if( m_KnifeRound && RDY ){
// again a few lines...
if(!m_TeamToSayStayLeave) m_TeamToSayStayLeave = winner;
this winner variable is read out of the event round_end, so it's given by the engine.
it is set absolutely correct, I've checked that about 500 times using a debug command that prints this variable to console... it actually worked when I waited for ppl to "say rdy", but when I started using the menu stuff it all got messy
Greetz MGee