Adds a new verb that allows users to toggle the requiring help intent to fire weapons on or off

This commit is contained in:
Yoshax
2016-04-16 18:30:35 +01:00
parent ff6526d5a3
commit ff96d27a85
4 changed files with 99 additions and 80 deletions

View File

@@ -20,7 +20,7 @@
if(!owner.canClick())
return
owner.setClickCooldown(5) // Spam prevention, essentially.
if(owner.a_intent == I_HELP)
if(owner.a_intent == I_HELP && owner.is_preference_enabled(/datum/client_preference/safefiring))
owner << "<span class='warning'>You refrain from firing \the [aiming_with] as your intent is set to help.</span>"
return
owner.visible_message("<span class='danger'>\The [owner] pulls the trigger reflexively!</span>")