mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
* converts the hide verb to an action button * Update code/modules/mob/living/carbon/alien/larva/larva.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/modules/mob/living/silicon/robot/drone/drone_abilities.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/modules/mob/living/silicon/robot/drone/drone_abilities.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/modules/mob/living/simple_animal/hide_action.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> * tweak * what a thrill * bam * what a krill --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
34 lines
989 B
Plaintext
34 lines
989 B
Plaintext
// DRONE ABILITIES
|
|
|
|
//Actual picking-up event.
|
|
/mob/living/silicon/robot/drone/attack_hand(mob/living/carbon/human/M)
|
|
if(M.a_intent == INTENT_HELP)
|
|
get_scooped(M)
|
|
else
|
|
..()
|
|
|
|
/mob/living/silicon/robot/drone/get_scooped(mob/living/carbon/grabber)
|
|
var/obj/item/holder/H = ..()
|
|
if(!istype(H))
|
|
return
|
|
if(IS_HORIZONTAL(src))
|
|
stand_up()
|
|
if(custom_sprite)
|
|
H.icon = 'icons/mob/custom_synthetic/custom-synthetic.dmi'
|
|
H.icon_override = 'icons/mob/custom_synthetic/custom_head.dmi'
|
|
H.lefthand_file = 'icons/mob/custom_synthetic/custom_lefthand.dmi'
|
|
H.righthand_file = 'icons/mob/custom_synthetic/custom_righthand.dmi'
|
|
H.icon_state = "[icon_state]"
|
|
H.item_state = "[icon_state]_hand"
|
|
else if(emagged)
|
|
H.icon_state = "drone-emagged"
|
|
H.item_state = "drone-emagged"
|
|
else
|
|
H.icon_state = "drone"
|
|
H.item_state = "drone"
|
|
grabber.put_in_active_hand(H)//for some reason unless i call this it dosen't work
|
|
grabber.update_inv_l_hand()
|
|
grabber.update_inv_r_hand()
|
|
|
|
return H
|