Lorry: Fix dumping of liquid objects

Dumping liquids with the lorry was one of the funnier new ideas, but it looked bad. Now the effect is awesome.
liquid_container
Mark 2016-04-08 21:31:52 +02:00
parent 8ece91193f
commit 14d695f0cb
1 changed files with 5 additions and 0 deletions

View File

@ -119,6 +119,11 @@ public func FxDumpContentsTimer(object target, proplist effect, int time)
// Assume the controller of the lorry is also the one dumping the contents.
random_content->SetController(GetController());
AddEffect("BlockCollectionByLorry", random_content, 100, 8, this);
if (random_content->~IsLiquid())
{
random_content->SetPosition(GetX(), GetY());
random_content->Disperse(GetR() + 10 * Sign(GetR()));
}
}
}
}