|
Tiberian Technologies Scripts Reference Revision: 9000
|
Dynamic Spawner - Controller. More...
#include <dp88_misc.h>
The controller script for danpaul88's dynamic spawner system, this allows players for one or all teams to use dynamic spawn points which can be created, moved and destroyed during the course of a match. Read the documentation carefully!
This script must be combined with instances of any of the other scripts in the Dynamic Spawners set of scripts or it will have no effect.
This script provides the ability to stack the teams and even split players between more than two teams, however implementors should be aware that it does not fundamentally alter the engine and the following caveats apply to teams beyond the original two;
You may also find that other scripts behave erratically when using additional teams and could even result in crashing the game. This aspect of the controller is highly experimental and not generally recommended for use outside well controlled environments.
The controller can attempt to stack the teams by moving newly joined players onto a different team to the default one chosen by the engine. By default it will not do this, however if you wish to set up assault / defence type scenarios you may want to bias the players to one side or the other.
When a player respawns the controller will search all of the available dynamic spawner instances for their team and picks one based on a weighted randomiser. The spawner script itself then takes over and moves them to the location of the spawner, optionally applying special effects such as spawning them inside a newly created vehicle.
| Number_Of_Teams | The number of teams that should play in the match |
| Team_Stacking | An optional parameter, if this is not blank the script expects to find a space seperated list of team weightings, with 1 number per team specified in Number_Of_Teams. If no value is provided and Number_Of_Teams is > 2 it will distribute players evenly between all teams |