Moves wielding firearms to attack_self, adds unique-action and toggle-firing-mode hotkeys. (#11205)

This commit is contained in:
Matt Atlas
2021-02-20 14:14:13 +01:00
committed by GitHub
parent d5f9edb07a
commit c38f4bddf1
31 changed files with 167 additions and 65 deletions
+12
View File
@@ -1335,6 +1335,18 @@
set hidden = 1
set_face_dir(client.client_dir(WEST))
/mob/living/verb/unique_action()
set hidden = 1
var/obj/item/gun/dakka = get_active_hand()
if(istype(dakka))
dakka.unique_action(src)
/mob/living/verb/toggle_firing_mode()
set hidden = 1
var/obj/item/gun/dakka = get_active_hand()
if(istype(dakka))
dakka.toggle_firing_mode(src)
/mob/proc/adjustEarDamage()
return
+2
View File
@@ -35,6 +35,8 @@
var/obj/screen/gun/move/gun_move_icon = null
var/obj/screen/gun/run/gun_run_icon = null
var/obj/screen/gun/mode/gun_setting_icon = null
var/obj/screen/gun/unique_action_icon = null
var/obj/screen/gun/toggle_burst_fire_icon = null
var/obj/screen/up_hint = null
//spells hud icons - this interacts with add_spell and remove_spell