mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
Start of TG Click Code Port (#18734)
* click code start * snake_span * Update click.dm * Update click.dm * Update click.dm * Update click.dm * Fixes borg ctrl_click Also implements allowing blocking of items being ctrl_clicked * Makes the statpanel not annihilate peoples ratelimiter Statpanel calls aren't really user controlled (and 180 of them get sent upon loading, as each verb counts as a topic calls when it calls Send-Tabs) so let's not count it towards the user when they log in.
This commit is contained in:
@@ -265,7 +265,7 @@ GLOBAL_LIST_EMPTY(magazine_icondata_states)
|
||||
drop_sound = 'sound/items/drop/matchbox.ogg'
|
||||
pickup_sound = 'sound/items/pickup/matchbox.ogg'
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box/AltClick(mob/user)
|
||||
/obj/item/ammo_magazine/ammo_box/click_alt(mob/user)
|
||||
if(can_remove_ammo)
|
||||
if(isliving(user) && Adjacent(user))
|
||||
if(stored_ammo.len)
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
var/flight_x_offset = 0
|
||||
var/flight_y_offset = 0
|
||||
|
||||
/obj/item/gun/CtrlClick(mob/user)
|
||||
/obj/item/gun/item_ctrl_click(mob/user)
|
||||
if(can_flashlight && ishuman(user) && loc == user && !user.incapacitated(INCAPACITATION_ALL))
|
||||
toggle_flashlight()
|
||||
else
|
||||
|
||||
@@ -327,7 +327,7 @@
|
||||
else
|
||||
set_light(0)
|
||||
|
||||
/obj/item/melee/robotic/blade/AltClick(mob/living/user)
|
||||
/obj/item/melee/robotic/blade/click_alt(mob/living/user)
|
||||
if(!in_range(src, user)) //Basic checks to prevent abuse
|
||||
return
|
||||
if(user.incapacitated() || !istype(user))
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/item/gun/projectile/smartgun/AltClick(mob/user)
|
||||
/obj/item/gun/projectile/smartgun/click_alt(mob/user)
|
||||
if(ishuman(user) && !user.incapacitated() && Adjacent(user))
|
||||
if(cycling)
|
||||
to_chat(user, span_warning("[src] is still cycling!"))
|
||||
|
||||
Reference in New Issue
Block a user