summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c
diff options
context:
space:
mode:
authorJan <>2015-02-02 18:49:15 +0100
committerJan <_>2015-07-10 17:52:21 +0200
commitde97f8b2898e8fd00c5d6108e2832b7e6cd3668f (patch)
treedc8d478aec0b71e0c4dd797e51080335220d02cf /TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c
parentca61c54b9bd69af897e4cc9d4385137fb56fd11a (diff)
downloadtempelschubsen-de97f8b2898e8fd00c5d6108e2832b7e6cd3668f.tar.gz
tempelschubsen-de97f8b2898e8fd00c5d6108e2832b7e6cd3668f.zip
TemplePushingB.c4s
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c')
-rw-r--r--TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c
deleted file mode 100644
index aa90954..0000000
--- a/TemplePushing.c4s/Misc.c4d/ModSnowball.c4d/Script.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/*-- Schneeball --*/
-
-#strict
-#include ICE1
-
-protected func Hit() {
- CastPXS("Snow", 100, 20);
- RemoveObject();
- return(1);
-}
-
-protected func Departure(thrower) {
- var proc = GetProcedure(thrower);
- var comd = GetComDir(thrower);
- // Ablegen -> Abbruch
- if (GetPlrDownDouble(GetOwner(thrower)))
- // Nur Ablegen in der Luft mit Befehlsrichtung? Luftwurf erlauben!
- if (proc ne "FLIGHT" || GetComDir(thrower) == COMD_None)
- return(0);
-
- // Ablegen im stehenden Hangeln -> Abbruch
- if (proc eq "HANGLE" && comd == COMD_None)
- return(0);
-
- // Ablegen im Schwimmen / Klettern -> Abbruch
- if (proc eq "SWIM" || proc eq "SCALE")
- return(0);
-
- // Wurfrichtung rausfinden
- var dir;
- // Nach Befehlsrichtung, wenn sinnvolle Werte vorhanden
- if (comd == COMD_Left() || comd == COMD_Right()) {
- if (comd == COMD_Left()) dir = -1;
- if (comd == COMD_Right()) dir = +1;
- }
- // sonst nach Blickrichtung
- else {
- if (GetDir(thrower) == DIR_Left()) dir = -1;
- else dir = +1;
- }
-
- // Wurfgeschwindigkeiten berechnen
- var x_dir = dir * GetPhysical("Throw", 0, thrower)/1000 + GetXDir(thrower) / 3;
- var y_dir = -30;
-
- if (!x_dir) return(0);
-
- // Position anpassen
- SetPosition(GetX() + x_dir / 5, GetY() - 2 + GetYDir(thrower) / 2);
-
- // Geschwindigkeit setzen
- SetXDir(x_dir);
- SetYDir(y_dir);
-
- Sound("Arrow");
-}
-
-func IsAlchemContainer() { return(true); }
-func AlchemProcessTime() { return(100); }