Greets,
Sorry if this has been discussed before but I searched every ET forums I could find with no luck.
Basically what I need to do is change the respawn time depending on how many players are on the server. I need to do this because I’m not running a popular server and there are many times when the number of players is gonna be equal or below 6, and when that happens the respawn time just becomes innappropriate for proper gameplay. I mean if it’s 2 vs 2 and both defending players get killed and it takes 30 secs to respawn, the game is basically over because it gives the other team enough time to cross the map and plant.
I was wondering if it was possible to do something like that in script file. I have never done an ET map so I’m not too familiar with creating script files, but I know each map comes with a script. I’ve looked at a few of them by extracting .pk3 files, and they all have two variables, wm_axisrespawntime and wm_alliesrespawntime, which define the maximum ammount of time it takes to respawn. I’ve also tried changing these values when specific events happen (like when a command post is built) and it seemed to work fine. However I need these values to change depending on how many players are on the server.
Is there a way to have something like this :
if (number_of_players >= 6)
{
wm_axisrespawntime 30
wm_alliesrespawntime 20
}
else
{
wm_axisrespawntime 15
wm_alliesrespawntime 10
}
which would basically cut in half the respawn time.
So is it possible to do something like this in a script file? Or would that code have to be built right into a mod?

