make hoist target move more fluently

master
Maikel de Vries 2018-01-26 18:23:18 +01:00
parent ff21dc3cfa
commit 2b9c96de30
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ local FxCableHoistPickup = new Effect
this.vehicle_touchable = Target.Touchable;
Target.Touchable = 0;
// Follow motion of hoist.
Target->SetPosition(this.hoist->GetX(), this.hoist->GetY() + 4);
Target->SetPosition(this.hoist->GetX(10), this.hoist->GetY(10) + 4, false, 10);
Target->SetSpeed(0, 0);
Target->SetR(this.hoist->GetR());
Target->SetRDir(0);
@ -145,7 +145,7 @@ local FxCableHoistPickup = new Effect
Timer = func(int time)
{
// Follow motion of hoist.
Target->SetPosition(this.hoist->GetX(), this.hoist->GetY() + 4);
Target->SetPosition(this.hoist->GetX(10), this.hoist->GetY(10) + 4, false, 10);
Target->SetSpeed(0, 0);
},