mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
Merge pull request #7534 from VOREStation/aro-moverework
Rewrite client/Move() for smoother movement ingame
This commit is contained in:
@@ -327,7 +327,7 @@
|
||||
if(!istype(tasted))
|
||||
return
|
||||
|
||||
if(!canClick() || incapacitated(INCAPACITATION_ALL))
|
||||
if(!checkClickCooldown() || incapacitated(INCAPACITATION_ALL))
|
||||
return
|
||||
|
||||
setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
|
||||
@@ -891,7 +891,7 @@
|
||||
set src in view(1)
|
||||
|
||||
//do_reagent_implant(usr)
|
||||
if(!isliving(usr) || !usr.canClick())
|
||||
if(!isliving(usr) || !usr.checkClickCooldown())
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.stat > CONSCIOUS)
|
||||
@@ -960,7 +960,7 @@
|
||||
set src in view(1)
|
||||
|
||||
//do_reagent_implant(usr)
|
||||
if(!isliving(usr) || !usr.canClick())
|
||||
if(!isliving(usr) || !usr.checkClickCooldown())
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.stat > CONSCIOUS)
|
||||
@@ -1029,7 +1029,7 @@
|
||||
set src in view(1)
|
||||
|
||||
//do_reagent_implant(usr)
|
||||
if(!isliving(usr) || !usr.canClick())
|
||||
if(!isliving(usr) || !usr.checkClickCooldown())
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.stat > CONSCIOUS)
|
||||
@@ -1114,7 +1114,7 @@
|
||||
set src in view(1)
|
||||
|
||||
//do_reagent_implant(usr)
|
||||
if(!isliving(usr) || !usr.canClick())
|
||||
if(!isliving(usr) || !usr.checkClickCooldown())
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.stat > CONSCIOUS)
|
||||
@@ -1474,7 +1474,7 @@
|
||||
set src in view(1)
|
||||
|
||||
//do_reagent_implant(usr)
|
||||
if(!isliving(usr) || !usr.canClick())
|
||||
if(!isliving(usr) || !usr.checkClickCooldown())
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.stat > CONSCIOUS)
|
||||
|
||||
@@ -26,12 +26,12 @@
|
||||
|
||||
/obj/item/weapon/holder/micro/attack_self(mob/living/carbon/user) //reworked so it works w/ nonhumans
|
||||
for(var/L in contents)
|
||||
if(ishuman(L) && user.canClick()) // These canClicks() are repeated here to make sure users can't avoid the click delay
|
||||
if(ishuman(L) && user.checkClickCooldown()) // These canClicks() are repeated here to make sure users can't avoid the click delay
|
||||
var/mob/living/carbon/human/H = L
|
||||
H.help_shake_act(user)
|
||||
user.setClickCooldown(user.get_attack_speed()) //uses the same cooldown as regular attack_hand
|
||||
return
|
||||
if(isanimal(L) && user.canClick())
|
||||
if(isanimal(L) && user.checkClickCooldown())
|
||||
var/mob/living/simple_mob/S = L
|
||||
user.visible_message("<span class='notice'>[user] [S.response_help] \the [S].</span>")
|
||||
user.setClickCooldown(user.get_attack_speed())
|
||||
|
||||
Reference in New Issue
Block a user