summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-04-09 00:39:10 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-04-09 00:39:10 +0200
commite27e48a4642de9451a14f6531b69c34e3e28b93e (patch)
tree6cfb7542d52f27b367feab236aca0421701e76cd /TemplePushing.c4s/System.c4g
parent376c20e8d9d0379ceffa28f459a3475e939cc6eb (diff)
downloadtempelschubsen-e27e48a4642de9451a14f6531b69c34e3e28b93e.tar.gz
tempelschubsen-e27e48a4642de9451a14f6531b69c34e3e28b93e.zip
Add hyper deflection handling to rock strike rocks
Diffstat (limited to 'TemplePushing.c4s/System.c4g')
-rw-r--r--TemplePushing.c4s/System.c4g/BigRock.c11
1 files changed, 11 insertions, 0 deletions
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