boomrace: fix picking up boompacks (now instantly)

objectmenu
Maikel de Vries 2016-01-24 23:27:57 +01:00
parent 451ea87ab9
commit 1cce689a67
1 changed files with 5 additions and 0 deletions

View File

@ -28,11 +28,16 @@ protected func Initialize()
protected func OnPlayerRespawn(int plr, object cp)
{
var clonk = GetCrew(plr);
// Jump to instantly collect the boompack.
clonk->SetAction("Jump");
clonk->CreateContents(Boompack);
}
global func FxRespawnBoomTimer(object target, effect, int time)
{
// Jump to instantly collect the boompack.
if (target->GetAction() == "Walk")
target->SetAction("Jump");
target->CreateContents(Boompack);
return -1;
}