Guns now throw casings around when fired (#8777)

This commit is contained in:
Alberyk
2020-05-02 15:56:52 -03:00
committed by GitHub
parent afb5e357ec
commit 3b2f1aafa9
2 changed files with 7 additions and 0 deletions

View File

@@ -101,6 +101,7 @@
qdel(chambered)
if(EJECT_CASINGS) //eject casing onto ground.
chambered.forceMove(get_turf(src))
chambered.throw_at(get_ranged_target_turf(get_turf(src),turn(loc.dir,270),1), rand(0,1), 5)
playsound(chambered, "sound/weapons/casingdrop[rand(1,5)].ogg", 50, 1)
if(CYCLE_CASINGS) //cycle the casing back to the end.
if(ammo_magazine)