summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d')
-rw-r--r--TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/MagicSpawnpoint.c4d/Script.c11
-rw-r--r--TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Names.txt2
-rw-r--r--TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Script.c5
3 files changed, 6 insertions, 12 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
diff --git a/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Names.txt b/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Names.txt
index 9d875f8..26991ea 100644
--- a/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Names.txt
+++ b/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Names.txt
@@ -1,2 +1,2 @@
-DE:Magischer Spawnpunktspawner
+DE:Magische Spawnpunktspawner
US:Magic Spawnpoint Spawner
diff --git a/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Script.c b/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Script.c
index d1e7b39..0de4e94 100644
--- a/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Script.c
+++ b/TemplePushing.c4s/CliffPushing.c4d/Rules.c4d/MagicSpawnpoints.c4d/Script.c
@@ -9,7 +9,6 @@ protected func Activate(iPlr) {
func Initialize()
{
SetGamma(RGB(5,5,10),RGB(80,80,150),RGB(200,200,255));
- RemoveAll(SPNP);
CreateObject(MSPN,550,282);
CreateObject(MSPN,603,205);
CreateObject(MSPN,682,282);
@@ -21,9 +20,5 @@ func Initialize()
CreateObject(MSPN,170,118);
CreateObject(MSPN,299,170);
CreateObject(MSPN,435,230);
- CreateObject(MSPN,1175,290);
- CreateObject(MSPN,105,380);
- CreateObject(MSPN,910,400);
- CreateObject(MSPN,560,610);
return(1);
} \ No newline at end of file