summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c
diff options
context:
space:
mode:
authorJan <>2015-02-02 17:58:18 +0100
committerJan <_>2015-07-10 17:51:43 +0200
commitca61c54b9bd69af897e4cc9d4385137fb56fd11a (patch)
treea4363f466cea6de48ca81fadc08273d58698d2ff /TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c
parent32a9632fbca3dd7a88bd3154b84a3773af39c276 (diff)
downloadtempelschubsen-ca61c54b9bd69af897e4cc9d4385137fb56fd11a.tar.gz
tempelschubsen-ca61c54b9bd69af897e4cc9d4385137fb56fd11a.zip
TemplePushingBeta.c4s
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c')
-rw-r--r--TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c
new file mode 100644
index 0000000..40c23c1
--- /dev/null
+++ b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Script.c
@@ -0,0 +1,41 @@
+/*-- Lavaschuss --*/
+
+#strict
+
+func Activate(pCaster,pRealcaster) {
+ var pClonk;
+ if(pRealcaster) pClonk=pRealcaster;
+ else pClonk=pCaster;
+
+ var iResult;
+ if (iResult = CheckEffect("Blast", 0, 125)) return(iResult!=-1 && RemoveObject());
+
+ // Zielen wenn möglich
+ if (pClonk->~DoSpellAim(this())) return(1);
+
+ // Schuss erzeugen
+ var obj = CreateObject(_LVS, 0, 0, GetOwner(pClonk));
+ obj->Launch(pClonk, GetDir(pClonk), GetX(pClonk), GetY(pClonk), 0);
+ Sound("Inflame");
+ RemoveObject();
+ return(1);
+}
+
+// Aktivierung nach Zielen (iAngle: -90=links; 0=oben; +90=rechts)
+public func ActivateAngle(object pCaller, int iAngle)
+ {
+ // Schuss erzeugen
+ var obj = CreateObject(_LVS, 0, 0, GetOwner(pCaller));
+ obj->Launch(pCaller,GetDir(pCaller), GetX(pCaller), GetY(pCaller), (900-iAngle*10));
+ Sound("Inflame");
+
+ // Objekt löschen
+ RemoveObject();
+ return(1);
+ }
+
+// Zielspruch (für Artefaktzauber)
+public func IsAimerSpell() { return(1); }
+
+public func GetSpellClass(object pMage) { return(FIRE); }
+public func GetSpellCombo(pMage) { return ("445"); } // (1: Backward; 2: Down; 3: Forward; 4: Throw; 5: Jump; 6: Dig)