offtime.py
offtime.py is a Battlefield 2 server script that allows having seperate server settings for when there are or aren't enough people to start a game.
Download Link
How to Install
- Browse to
admin/standard_adminin your server directory - Edit
__init__.pyso it looks similar to the following. Theimport offtimeandofftime.init()lines are what you need to add.import autobalance import tk_punish import offtime autobalance.init() tk_punish.init() offtime.init() - Put the script in the
admin/standard_adminfolder. - Run your server. If
comes up in your server console it should work from there.offtime.py loaded
Usage
To change the settings, edit the two dictionaries in the script. They look like this:
settingsNotStarted = {
'sv.soldierFriendlyFire': '0',
'sv.soldierSplashFriendlyFire': '0',
'sv.vehicleFriendlyFire': '0',
'sv.vehicleSplashFriendlyFire': '0',
'sv.spawnTime': '0',
'sv.manDownTime': '0',
}
settingsStarted = {
'sv.soldierFriendlyFire': '25',
'sv.soldierSplashFriendlyFire': '25',
'sv.vehicleFriendlyFire': '25',
'sv.vehicleSplashFriendlyFire': '25',
'sv.spawnTime': '13',
'sv.manDownTime': '13',
}
Both the setting names and values must be strings.