2
0
Эх сурвалжийг харах

Merge pull request #1498 from Azaezel/alpha41/noU

offload spawnControlObject on controllable death to gameplay modules
Brian Roberts 3 сар өмнө
parent
commit
5bfeea0e61

+ 1 - 7
Templates/BaseGame/game/data/DamageModel/scripts/server/shapeBase.tscript

@@ -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)