mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Throw mode changes client cursor when activated (#21219)
* throwmode cursor changing * do not make PRs at 4 am
This commit is contained in:
@@ -629,16 +629,24 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
|
||||
if(I)
|
||||
SEND_SIGNAL(I, COMSIG_CARBON_TOGGLE_THROW, in_throw_mode)
|
||||
|
||||
#define THROW_MODE_ICON 'icons/effects/cult_target.dmi'
|
||||
|
||||
/mob/living/carbon/proc/throw_mode_off()
|
||||
in_throw_mode = FALSE
|
||||
if(throw_icon) //in case we don't have the HUD and we use the hotkey
|
||||
throw_icon.icon_state = "act_throw_off"
|
||||
if(client?.mouse_pointer_icon == THROW_MODE_ICON)
|
||||
client.mouse_pointer_icon = initial(client.mouse_pointer_icon)
|
||||
|
||||
/mob/living/carbon/proc/throw_mode_on()
|
||||
SIGNAL_HANDLER //This signal is here so we can turn throw mode back on via carp when an object is caught
|
||||
in_throw_mode = TRUE
|
||||
if(throw_icon)
|
||||
throw_icon.icon_state = "act_throw_on"
|
||||
if(client?.mouse_pointer_icon == initial(client.mouse_pointer_icon))
|
||||
client.mouse_pointer_icon = THROW_MODE_ICON
|
||||
|
||||
#undef THROW_MODE_ICON
|
||||
|
||||
/mob/proc/throw_item(atom/target)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user