Explosion now throws affected entities, fixes probability/severi… (#732)
* throwforce and probability fixes for explosions Applies force to all affected by explosion entities with ItemComponent Fixes probability issues with explosion related callbacks * dependency fix, throw helper * delete TODO Co-authored-by: gituhabu <48828502+gituhabu@users.noreply.github.com>
This commit is contained in:
@@ -91,10 +91,11 @@ namespace Content.Server.GameObjects.Components.Destructible
|
||||
_actSystem.HandleDestruction(Owner, false);
|
||||
break;
|
||||
case ExplosionSeverity.Heavy:
|
||||
_actSystem.HandleDestruction(Owner, true);
|
||||
var spawnWreckOnHeavy = prob.Prob(0.5f);
|
||||
_actSystem.HandleDestruction(Owner, spawnWreckOnHeavy);
|
||||
break;
|
||||
case ExplosionSeverity.Light:
|
||||
if (prob.Prob(40))
|
||||
if (prob.Prob(0.4f))
|
||||
_actSystem.HandleDestruction(Owner, true);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user