-
Notifications
You must be signed in to change notification settings - Fork 23
Pregame
The pregame plugin provides a way to customise the pregame time. It offers three modes:
-
The old mode where you set a fixed pregame length using the
"PreGameTime"
option. Once that time is up, the game starts. This does not require any commanders to start the game. -
In this mode, the game will wait until one team has a commander. Once they do, either the other team gets a commander and the game starts, or the
"PreGameTime"
duration passes with only one commander and the game starts. Unlike option 3, this mode starts the"PreGameTime"
timer after one team has a commander. -
In this mode, once either both teams get a commander, or the
"PreGameTime"
duration has expired and one team has a commander, the game starts. Note that unlike option 2, this mode starts the"PreGameTime"
timer immediately from the start of the map/end of the last round.
This plugin only works in Natural Selection 2. It will not load in NS2: Combat.
The default config looks something like this:
{
"ShowCountdown": true,
"PreGameTime": 45,
"CountdownTime": 15,
"RequireComs": 1,
"AbortIfNoCom": false,
"AllowAttackPreGame": true,
"StartDelay": 0
}
The file should be called "PreGame.json" and should be placed in the directory defined as your plugin config directory (default is config://shine/plugins).
Option | Description |
---|---|
RequireComs | Defines the mode of operation. Set it to 0 to get the first mode described above. 1 is the second mode, 2 is the third mode. |
ShowCountdown | Determines whether to display a countdown on player's screens for when the round will start. |
PreGameTime | See the above descriptions of the modes. |
CountdownTime | Time to wait when both teams have a commander before starting the game. |
AbortIfNoCom | If you are using "RequireComs" 1 or 2, then the countdown to start will be aborted if a commander leaves the chair and this is set to true. |
AllowAttackPreGame | If set to false, then attacking is denied for the entire pregame. |
StartDelay | If set to a time (in seconds) greater than 0, it will force the game to wait this long after a map change until a game can start. |