Merge pull request #1498 from Azaezel/alpha41/noU

offload spawnControlObject on controllable death to gameplay modules
This commit is contained in:
Brian Roberts 2025-06-09 17:23:04 -05:00 committed by GitHub
commit 5bfeea0e61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -268,16 +268,10 @@ function ShapeBaseData::onDestroyed(%this, %obj, %state)
if (%obj.getMountedImage(%slot))
%obj.setImageTrigger(%slot, false);
}
if (%obj.client)
{
%obj.client.player = 0;
%obj.client.schedule($DeathDuration, "spawnControlObject");
}
// Schedule corpse removal. Just keeping the place clean.
%obj.schedule($CorpseTimeoutValue - 1000, "startFade", 1000, 0, true);
%obj.schedule($CorpseTimeoutValue, "delete");
%obj.schedule($CorpseTimeoutValue,"blowUp");
%obj.schedule($CorpseTimeoutValue+32, "delete");
}
function ShapeBaseData::onRemove(%this, %obj)