Tournament mode, again

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Postby Xandria » Fri Nov 30, 2007 5:38 am

Hm that Unstable dude is a mightyfine Freeze player I believe.

This is what I Suggest, nothing in terms of minsta is being done really, so a 2 v 2 tournament consisting of approximately 12 teams could enter so you'd have primary rounds, quarter finals, semi, final etc. If there are more than 12 or less, making sure it's an even number so the competition is run fairly and no one gets a bypass.
Xandria
Member
 
Posts: 49
Joined: Fri Nov 30, 2007 5:10 am

Postby nifrek » Sat Dec 08, 2007 5:38 am

Well hey, I played with the source and somehow managed to make a lockteam cvar and it works.

Basically, I think what I did is bypass the PutClientInServer when the cvar is enabled when client tries to pick a team. It's pretty messy right now cos I don't exactly know what the code means, I just copied/modified a line or 2. I don't know how to put a default value in it and there's no messages at all when it gets enabled or disabled.

It only works when there are teams (that's perfect but purely accidental), has to be tdm or ctf and server must disable auto-join when players press "jump", and instead use the selecteam menu. Teamlock disables itself when a map starts, which is great, I think it's because I added cvar_set("teamlock", "0"); in ResetGameCvars but there's a message in server console that says "Cvar_Set: variable teamlock not found" everytime a map starts, so it might be an accidental bonus again at this point ;) . So it's obviously not done right, but it's a start.

Thanks a lot to pavlvs for letting me test it on his server.

Is this useful?
nifrek
Alien
 
Posts: 208
Joined: Fri Sep 22, 2006 6:43 am

Postby nifrek » Sun Dec 09, 2007 12:04 am

OOooooh it works great now.

It prints a message "Cannot join, match is already started" when a player tries do join a team. So with the new map reset instead of restart, this will be a good start to eventually make an actual tournament mode. Right now it has to be enabled by vote, so it's not that that useful because it would slow down the start of a game. But once it can be enabled at the same time has every player is ready it's going to be perfect.
nifrek
Alien
 
Posts: 208
Joined: Fri Sep 22, 2006 6:43 am

Previous

Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron