Files
LT3andGitHub 5164a6953f Fix bubble alert runtime on gun safeties (#4315)
## 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
2025-07-26 20:40:45 -04:00

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 ..()