diff options
| author | Jan <> | 2015-07-10 18:11:22 +0200 |
|---|---|---|
| committer | Jan <_> | 2015-07-10 18:47:01 +0200 |
| commit | f1ece16c08d8c01e1d49a25f0314a96c021e73cb (patch) | |
| tree | 9bc9f547f2524dee8e62f168f317df465a6cbcdd /TemplePushing.c4s/System.c4g/Clonk.c | |
| parent | 80b15646d73587f4e15a2897314692b58aa1a47f (diff) | |
| download | tempelschubsen-f1ece16c08d8c01e1d49a25f0314a96c021e73cb.tar.gz tempelschubsen-f1ece16c08d8c01e1d49a25f0314a96c021e73cb.zip | |
r0.921
Diffstat (limited to 'TemplePushing.c4s/System.c4g/Clonk.c')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Clonk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/TemplePushing.c4s/System.c4g/Clonk.c b/TemplePushing.c4s/System.c4g/Clonk.c index c934938..3ac40a0 100644 --- a/TemplePushing.c4s/System.c4g/Clonk.c +++ b/TemplePushing.c4s/System.c4g/Clonk.c @@ -7,6 +7,7 @@ local rotateInJump; local removeOnDeath; +/* protected func ControlThrow(object byObj) { // First check if the clonk already handles the throw control @@ -19,6 +20,7 @@ protected func ControlThrow(object byObj) arrowPack->Activate(this); return 1; } +*/ protected func ControlSpecial() { @@ -33,10 +35,11 @@ protected func ControlSpecial() // Find clonks in range var clonks = FindObjects( Find_ID(CLNK), - Find_InRect(-10 + GetDir() * 20, 0, 10, 10), + Find_InRect(-20 + GetDir() * 29, 0, 12, 10), Find_OCF(OCF_Alive), - Find_Hostile(GetOwner())); - + Find_Hostile(GetOwner()), + Find_Not(Find_Action("Tumble"))); + if (GetLength(clonks) == 0) return 0; // Randomly select clonk to be pushed |
