ItsMods

Full Version: REQUEST Infected
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Not sure if this is even possible, but is there any mod etc, that can auto respawn another infected player if the first one leaves

when a round starts the initial player is auto infected sometimes they quit, so if i'm not on the server the players will obviously leave because the round limit is 16min.

thanks.
I think it is possible since you can see who is on which team. Just check which team has 1 player in it, than you know that is the infected team. Than you just make a loop that checks whether this team has > 1 player. When it is player = 0 than you can do fast_restart with the plugin automaticly.
Also the internal teamnames (still allies/axis from CoD1) can be read (should be possible via the dedicated server addon; if not, @Nukem should add it). Infected are always the same team (so either axis or allied (I don't know which one and I would think it's axis because they are the bad guys)).

So then checking both teams for 1 player is not necessary anymore. Remains the teamsize check: Wait for the first person to join said team (maybe due to some timing issues the team is empty exactly on round start so I shouldn't rely on that (test it, it might also work)). OnPlayerDisconnect (does that exist?) for that one player (and teamsize didn't change in the meantime) -> ban that person and kill someone (does that make them infected) or just move the team over. Which can be unfair because the model does not change and the new infected might be next to all other players.
i was hoping it could be done, is @Nukem aware of this or do i need to ask him?

thanks.
Wasn't there a plugin @zxz0O0 made to prevent leaving ?
(02-23-2012, 20:00)OrangePL Wrote: [ -> ]Wasn't there a plugin @zxz0O0 made to prevent leaving ?

What if player lost connection? zxz000's plugin can work, but won't work always.