For testing: Initial digging boost

The shovel initially has a little more speed, making the overhead dig less fiddly
install-platforms
Mark 2017-11-27 22:28:55 +01:00
parent c7bb0785b6
commit 58b8a97734
1 changed files with 8 additions and 8 deletions

View File

@ -177,15 +177,15 @@ public func FxShovelDigTimer(object clonk, effect fx, int time)
func GetDigSpeed(object clonk)
{
return clonk.ActMap.Dig.Speed;
/* TODO: temporarily deactivated the original code for testing before release 8.0 - revert this change if we do not like it.
var speed = clonk.ActMap.Dig.Speed * 2;
// Adjust speed at current animation position.
var animation = clonk->GetDiggingAnimation();
var position = clonk->GetAnimationPosition(animation) * 180 / clonk->GetAnimationLength("Dig");
speed = speed * Cos(position - 45, 50)**2 / 2500;
var speed = clonk.ActMap.Dig.Speed;
if (clonk->GetActTime() <= clonk.ActMap.Dig.Length * 3 / 4)
{
// Adjust speed at current animation position.
var animation = clonk->GetDiggingAnimation();
var position = clonk->GetAnimationPosition(animation) * 180 / clonk->GetAnimationLength("Dig");
speed = 2 * speed * Cos(position - 45, 50)**2 / 2500;
}
return speed;
*/
}
public func Dust(object target)