summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s')
-rw-r--r--TemplePushing.c4s/Misc.c4d/PushExecuter.c4d/Script.c10
-rw-r--r--TemplePushing.c4s/Script.c4
2 files changed, 9 insertions, 5 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/PushExecuter.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/PushExecuter.c4d/Script.c
index 36ccc5f..cd4d84c 100644
--- a/TemplePushing.c4s/Misc.c4d/PushExecuter.c4d/Script.c
+++ b/TemplePushing.c4s/Misc.c4d/PushExecuter.c4d/Script.c
@@ -18,6 +18,14 @@ func Initialize()
AddEffect("IntExecutePushes", this, 1, 1, this);
}
+func InitializeDef()
+{
+ if(!PushExecuter)
+ {
+ CreateObject(PUEX, 0, 0, NO_OWNER);
+ }
+}
+
func RequestPush(object clonk)
{
if(GetIndexOf(clonk, requestedPushes) == -1)
@@ -39,4 +47,4 @@ func FxIntExecutePushesTimer(object target, int effectNumber)
}
requestedPushes = [];
-} \ No newline at end of file
+}
diff --git a/TemplePushing.c4s/Script.c b/TemplePushing.c4s/Script.c
index 11aa82f..879871b 100644
--- a/TemplePushing.c4s/Script.c
+++ b/TemplePushing.c4s/Script.c
@@ -32,8 +32,6 @@ func Initialize()
eliminatedPlayers = [];
ambienceSounds = [];
- CreateObject(PUEX, 0, 0, NO_OWNER);
-
// Create Thrones for recreational purposes
CreateObject(THRN, 590, 420, NO_OWNER);
CreateObject(THRN, 410, 210, NO_OWNER);
@@ -198,8 +196,6 @@ func Script0()
ambienceSounds = mode->~AmbienceSounds() || section->~SectionAmbienceSounds() || [];
mode = CreateObject(mode, 0, 0, NO_OWNER);
- CreateObject(PUEX, 0, 0, NO_OWNER);
-
var modeGamma = mode->~Gamma();
if (modeGamma) SetGamma(modeGamma[0], modeGamma[1], modeGamma[2]);