Make Syringe Guns shoot Syringes in Inject mode (#23088)

* Automatically set launched syringes to inject

* Implement for normal syringe guns too

* Put mech syringe back to draw mode if emptied when shot

* Use syringe's defines

* Move defines

* update paradise.dme

* Add comment for defines

* do not set RSG syringes to inject

---------

Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
This commit is contained in:
Arthri
2023-11-03 11:08:38 +00:00
committed by GitHub
co-authored by Arthri
parent 569389bd18
commit 279071ab91
4 changed files with 10 additions and 4 deletions
@@ -28,6 +28,7 @@
chambered.BB = new S.projectile_type(src)
S.reagents.trans_to(chambered.BB, S.reagents.total_volume)
S.mode = SYRINGE_INJECT
chambered.BB.name = S.name
syringes.Remove(S)
@@ -55,6 +56,7 @@
// Remove the chambered syringe only if there's no syringe left
S = new()
chambered.BB.reagents.trans_to(S, chambered.BB.reagents.total_volume)
S.mode = SYRINGE_INJECT
qdel(chambered.BB)
chambered.BB = null
process_chamber()