Eject casings some distance from the gun (#18081)

Makes bullet casings launch a bit away from you when shooting a gun. Cycling still drops it at your feet.

---------

Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
This commit is contained in:
Arendian
2023-07-29 23:07:31 +02:00
committed by GitHub
parent 1fe9a071b1
commit 2c5f202dca
3 changed files with 14 additions and 1 deletions

View File

@@ -171,7 +171,7 @@ public sealed partial class GunSystem : SharedGunSystem
// Something like ballistic might want to leave it in the container still
if (!cartridge.DeleteOnSpawn && !Containers.IsEntityInContainer(ent!.Value))
EjectCartridge(ent.Value);
EjectCartridge(ent.Value, angle);
Dirty(cartridge);
break;