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/ShootInventory.c | |
| parent | 1c9d3fceaf8b515ad2d59b12e8c63562d934698d (diff) | |
| download | tempelschubsen-b4434b1981860e9412fb25239d612960008bb81c.tar.gz tempelschubsen-b4434b1981860e9412fb25239d612960008bb81c.zip | |
Rework QueryCatchBlow
Diffstat (limited to 'TemplePushing.c4s/System.c4g/ShootInventory.c')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/ShootInventory.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/TemplePushing.c4s/System.c4g/ShootInventory.c b/TemplePushing.c4s/System.c4g/ShootInventory.c index b0260b5..dd4ce1f 100644 --- a/TemplePushing.c4s/System.c4g/ShootInventory.c +++ b/TemplePushing.c4s/System.c4g/ShootInventory.c @@ -13,6 +13,8 @@ #appendto TSWB #appendto METO +local shotFrame, shooter; + protected func Activate(object clonk) { [$Shoot$|Image=GNPW] @@ -86,6 +88,14 @@ protected func Activate(object clonk) SetYDir(-15); SetXDir(-80 + 160 * clonk->GetDir()); } + + shotFrame = FrameCounter(); + shooter = clonk; return 1; -}
\ No newline at end of file +} + +func QueryOwnCatchBlow(object target) +{ + return target == shooter && FrameCounter() - shotFrame < 3; +} |
