diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-11-16 23:53:00 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-11-16 23:53:00 +0100 |
| commit | bf9af8b1f9d44e124641da63d27fd770e3ca09d9 (patch) | |
| tree | a6fdf473d93be975683bc4e1b016b550a1aa7d8d /TemplePushing.c4s | |
| parent | 5a543e21c489b6a03ab708862636c04df2a0b23e (diff) | |
| download | tempelschubsen-bf9af8b1f9d44e124641da63d27fd770e3ca09d9.tar.gz tempelschubsen-bf9af8b1f9d44e124641da63d27fd770e3ca09d9.zip | |
Push Executor: Leverage InitializeDef
Diffstat (limited to 'TemplePushing.c4s')
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/PushExecuter.c4d/Script.c | 10 | ||||
| -rw-r--r-- | TemplePushing.c4s/Script.c | 4 |
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]); |
