diff options
| author | Jan <> | 2015-02-02 17:53:07 +0100 |
|---|---|---|
| committer | Jan <_> | 2015-07-10 17:48:38 +0200 |
| commit | 40fb3e5d61c44886b06d839a35adb0c11a5f918f (patch) | |
| tree | f33632c8b41f1c3e955a83cd156266a73a4ae9c3 /TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c | |
| parent | f5a80c493dcefbc8f45987b8fd454d974f739cf7 (diff) | |
| download | tempelschubsen-40fb3e5d61c44886b06d839a35adb0c11a5f918f.tar.gz tempelschubsen-40fb3e5d61c44886b06d839a35adb0c11a5f918f.zip | |
CliffPushR2.c4s
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 |
