#1710: Fix wrong animation on ladder after wall jump

The problem was that the call to Actmap.*.StartCallLadderOverloaded happend parallely with the ladder search effect and finished after the search effect call was finished, starting a wall jump animation after the Clonk grabbed the ladder.
ipv6
Mark 2016-12-25 19:24:10 +01:00
commit 7c2a4ee574
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,12 @@ public func StartSearchLadder()
if (GetAction() == "WallJump" && this.ActMap.WallJump.StartCallLadderOverloaded)
Call(this.ActMap.WallJump.StartCallLadderOverloaded);
// Add an effect to search for ladders.
ScheduleCall(this, this.AddSearchLadderEffect, 1, 1);
return;
}
public func AddSearchLadderEffect()
{
if (!GetEffect("InSearchLadder", this))
AddEffect("IntSearchLadder", this, 1, 2, this);
FxIntSearchLadderTimer();