mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
## About The Pull Request Fixes https://github.com/Bubberstation/Bubberstation/issues/4314 ## Proof Of Testing <details> <summary>Screenshots/Videos</summary> https://github.com/user-attachments/assets/c1f77f43-eb19-4792-99e6-4b4902d51373 </details> ## Changelog None required
10 lines
336 B
Plaintext
10 lines
336 B
Plaintext
/// Because autofire weapons bypass do_fire() they will also bypass the safety check unless we do it here
|
|
/datum/component/automatic_fire/start_autofiring()
|
|
if(autofire_stat == AUTOFIRE_STAT_FIRING)
|
|
return
|
|
if(SEND_SIGNAL(parent, COMSIG_GUN_TRY_FIRE, shooter) & COMPONENT_CANCEL_GUN_FIRE)
|
|
stop_autofiring()
|
|
return
|
|
|
|
return ..()
|