diff options
| author | Mittendrein Markus <maxmitti@gmx.net> | 2016-02-10 14:22:21 +0100 |
|---|---|---|
| committer | Mittendrein Markus <maxmitti@gmx.net> | 2016-02-10 14:22:21 +0100 |
| commit | b4434b1981860e9412fb25239d612960008bb81c (patch) | |
| tree | 1a01a97b5ca01c120d3c42d9ed450b1081dcd51c /TemplePushing.c4s/System.c4g/Arrow.c | |
| parent | 1c9d3fceaf8b515ad2d59b12e8c63562d934698d (diff) | |
| download | tempelschubsen-b4434b1981860e9412fb25239d612960008bb81c.tar.gz tempelschubsen-b4434b1981860e9412fb25239d612960008bb81c.zip | |
Rework QueryCatchBlow
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;
+}
|
