diff --git a/Source/VehiclesCompat/VehiclesCompat/VehiclesCompat.cs b/Source/VehiclesCompat/VehiclesCompat/VehiclesCompat.cs index 97f4808a4b..bcf685ab61 100644 --- a/Source/VehiclesCompat/VehiclesCompat/VehiclesCompat.cs +++ b/Source/VehiclesCompat/VehiclesCompat/VehiclesCompat.cs @@ -98,6 +98,14 @@ public static object LaunchProjectileCE(ThingDef projectileDef, } var p = ThingMaker.MakeThing(projectileDef, null); ProjectileCE projectile = (ProjectileCE)p; + + var projectilePropsCE = projectileDef.projectile as ProjectilePropertiesCE; + if (projectilePropsCE.dropsCasings) + { + CE_Utility.ThrowEmptyCasing(vehicle.DrawPos, vehicle.Map, DefDatabase.GetNamed(projectilePropsCE.casingMoteDefname), 3f, shotRotation); + CE_Utility.MakeCasingFilth(vehicle.Position, vehicle.Map, DefDatabase.GetNamed(projectilePropsCE.casingFilthDefname)); + } + GenSpawn.Spawn(projectile, vehicle.Position, vehicle.Map); projectile.ExactPosition = origin; projectile.canTargetSelf = false;