summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Script.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/Script.c')
-rw-r--r--TemplePushing.c4s/Script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/TemplePushing.c4s/Script.c b/TemplePushing.c4s/Script.c
index 27095d8..6b47dcf 100644
--- a/TemplePushing.c4s/Script.c
+++ b/TemplePushing.c4s/Script.c
@@ -24,6 +24,7 @@ static loadingSection;
static eliminatedPlayers;
static gameStartMessage, countdown, gameStarted, gameOver;
static ambienceSounds;
+static spawnPointSpawner;
func Initialize()
{
@@ -208,7 +209,7 @@ func Script0()
// Create spawnpoints
if (!mode->~NoSpawnpoints())
{
- var spawnPointSpawner = CreateObject(SPSR, 0, 0, NO_OWNER);
+ spawnPointSpawner = CreateObject(SPSR, 0, 0, NO_OWNER);
spawnPointSpawner->SetLocations(section->SpawnpointLocations());
spawnPointSpawner->SetDefinitions(mode->SpawnpointDefinitions());
@@ -586,6 +587,8 @@ func LaunchClonk(int player, object clonk, bool relaunch)
SetPlrView(player, clonk);
ResetHealth(clonk);
+
+ CreateContents(spawnPointSpawner->GetRandomDefinition(), clonk);
}
func ResetHealth(object clonk)