diff options
Diffstat (limited to 'TemplePushing.c4s/System.c4g/Arrow.c')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Arrow.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/Arrow.c b/TemplePushing.c4s/System.c4g/Arrow.c new file mode 100644 index 0000000..f4e2202 --- /dev/null +++ b/TemplePushing.c4s/System.c4g/Arrow.c @@ -0,0 +1,17 @@ +/*-- Don't hit shooter directly after shooting --*/
+#strict 2
+#appendto ARRW
+#appendto FARW
+
+local shooter;
+
+func Launch(object shooterClonk)
+{
+ if (shooterClonk) shooter = shooterClonk;
+ return _inherited(shooterClonk, ...);
+}
+
+func QueryOwnCatchBlow(object target)
+{
+ return target == shooter;
+}
|
