From e27e48a4642de9451a14f6531b69c34e3e28b93e Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 9 Apr 2019 00:39:10 +0200 Subject: Add hyper deflection handling to rock strike rocks --- TemplePushing.c4s/System.c4g/BigRock.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'TemplePushing.c4s/System.c4g') diff --git a/TemplePushing.c4s/System.c4g/BigRock.c b/TemplePushing.c4s/System.c4g/BigRock.c index 6e97fe0..35a3094 100644 --- a/TemplePushing.c4s/System.c4g/BigRock.c +++ b/TemplePushing.c4s/System.c4g/BigRock.c @@ -1,4 +1,5 @@ /*-- Prevent rock strike from hitting allies --*/ +/*-- And some hyper deflection stuff --*/ #appendto BIRK #strict 2 @@ -6,3 +7,13 @@ func QueryOwnCatchBlow(object target) { return !Hostile(GetOwner(), target->GetOwner()); } + +func HyperDeflection(int newAngle, int newSpeed, object by) +{ + SetOwner(GetOwner(by)); +} + +func HyperDeflectionIgnore(object by) +{ + return !Hostile(GetOwner(), GetOwner(by)); +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf