From b4434b1981860e9412fb25239d612960008bb81c Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Wed, 10 Feb 2016 14:22:21 +0100 Subject: Rework QueryCatchBlow --- TemplePushing.c4s/System.c4g/Arrow.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 TemplePushing.c4s/System.c4g/Arrow.c (limited to 'TemplePushing.c4s/System.c4g/Arrow.c') 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; +} -- cgit v1.2.3-54-g00ecf