diff options
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 |
