diff options
Diffstat (limited to 'TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c')
| -rw-r--r-- | TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c b/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c index 4466a3a..1f93fc8 100644 --- a/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c +++ b/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c @@ -1,4 +1,4 @@ -/*-- Magic Spawnpoint --*/ +/*-- Spawnpoint --*/ #strict @@ -8,7 +8,7 @@ func IsWaypoint() { return(1); } global func PlaceSpawnpoint(id idObj, int iX, int iY, int timer) { - var spwn = CreateObject(MSPN, iX, iY, -1); + var spwn = CreateObject(SPNP, iX, iY, -1); spwn->CreateContents(idObj); if(timer) spwn->LocalN("spawntimer") = timer; @@ -17,8 +17,7 @@ global func PlaceSpawnpoint(id idObj, int iX, int iY, int timer) protected func Initialize() { - if(Random(14)) WpID=SCRL; - else WpID=OGBT; + WpID = [SCRL]; // Standardtimer = 1000 Frames spawntimer = 1000; SetClrModulation(RGBa(0,0,0,255)); @@ -36,7 +35,7 @@ protected func Timer() // Kein Inhalt? if(!Contents()) { - return(CreateContents(WpID)); + return(CreateContents(WpID[Random(GetLength(WpID))])); } // Tolle Effekt starten angle += 10; @@ -134,7 +133,7 @@ public func RejectEntrance(object pClonk) return(1); Collect(pObj, pClonk); - CreateContents(WpID); + CreateContents(WpID[Random(GetLength(WpID))]); Initialized(); if(Contained(pObj) == this()) RemoveObject(pObj); else |
