Skip to content

Commit

Permalink
Force fragments to spawn at ground level or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinslr committed Apr 27, 2024
1 parent 9bdd632 commit 43a24b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/CombatExtended/CombatExtended/Comps/CompFragments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ static CompFragments()

public static IEnumerator FragRoutine(Vector3 pos, Map map, float height, Thing instigator, ThingDefCountClass frag, float fragSpeedFactor, float fragShadowChance, FloatRange fragAngleRange, FloatRange fragXZAngleRange, float minCollisionDistance = 0f, bool canTargetSelf = true)
{
if (height < 0.001f)
{
height = 0.001f;
}
var cell = pos.ToIntVec3();
var exactOrigin = new Vector2(pos.x, pos.z);

Expand Down

0 comments on commit 43a24b5

Please sign in to comment.