[Resolved]specific g_types/maps dependant on amount of players.

2 replies [Last post]
FranK
frank's picture
Offline
Joined: Jan 2011
Posts:

Anyone know if this is possible?

i want to be able to exec server side commands based on number of active players.

example: if 10 players on server i want to auto switch from ffa to tdm and start a map suitable for g_type/amount of players.

if players = 10 then g_type 3 and q3dm11 <- how to code this into server cfg?

hope this makes sense to all you techs out there and hopefuly someone can give me an easy workaround.

thanks in advance.

"Beauty can cover a multitude of sins. But underneath, we all look exactly the same."

Frank Breitkopf :- no way out

[MR.]ZONT
Offline
Joined: Feb 2007
Posts:
Re: specific g_types/maps dependant on amount of players.

i suggest u to read documentation Rotation System Winking

so ur example can be implemented w/ similar block in rotation file.

if  (xp_activeClients = 10) {
  g_gametype : 3
  q3dm11
} else {
  //leaves old gametype defined or in rotation file above or just current active (i guess)
  q3dm11
}

p.s. mb i lie didnt test it Smug

FranK
frank's picture
Offline
Joined: Jan 2011
Posts:
Re: specific g_types/maps dependant on amount of players.

thanks, I didnt know xp_activeClients, but this is what i was looking for.

"Beauty can cover a multitude of sins. But underneath, we all look exactly the same."

Frank Breitkopf :- no way out