From 376c20e8d9d0379ceffa28f459a3475e939cc6eb Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 6 Apr 2019 19:44:42 +0200 Subject: Add hyper mode to deflection, enabled by stacking them, that can deflect ice needles and fire balls --- TemplePushing.c4s/System.c4g/FireBall.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'TemplePushing.c4s/System.c4g') diff --git a/TemplePushing.c4s/System.c4g/FireBall.c b/TemplePushing.c4s/System.c4g/FireBall.c index 8578ebc..669ffc9 100644 --- a/TemplePushing.c4s/System.c4g/FireBall.c +++ b/TemplePushing.c4s/System.c4g/FireBall.c @@ -90,3 +90,16 @@ func FxFireballFlightTimer(pTarget, iEffectNumber, iEffectTime) // OK; weiter existieren return(1); } + +func HyperDeflectable() { return true; } + +func HyperDeflection(int newAngle, int newSpeed, object by) +{ + var effect = GetEffect("FireballFlight", this); + if(!effect) + { + return; + } + EffectVar(2, this, effect) = newAngle; + SetOwner(GetOwner(by)); +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf