mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-27 23:16:19 +01:00
partially enable micro holding
This commit is contained in:
@@ -54,6 +54,9 @@
|
||||
"<span class='userdanger'>[user] picks you up!</span>")
|
||||
to_chat(user, "<span class='notice'>You pick [source] up.</span>")
|
||||
source.drop_all_held_items()
|
||||
if(ishuman(source)) //Slightly hacky edit to at least not disable the micro holding system entirely
|
||||
var/obj/item/clothing/head/mob_holder/micro/holder = new(get_turf(source), source, worn_state, alt_worn, right_hand, left_hand, inv_slots)
|
||||
return holder
|
||||
var/obj/item/clothing/head/mob_holder/holder = new(get_turf(source), source, worn_state, alt_worn, right_hand, left_hand, inv_slots)
|
||||
if(proctype)
|
||||
INVOKE_ASYNC(src, proctype, source, holder, user)
|
||||
@@ -77,6 +80,7 @@
|
||||
icon_state = ""
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
var/mob/living/held_mob
|
||||
var/can_head = FALSE
|
||||
|
||||
/obj/item/clothing/head/mob_holder/Initialize(mapload, mob/living/target, worn_state, alt_worn, right_hand, left_hand, slots = NONE)
|
||||
. = ..()
|
||||
@@ -110,6 +114,8 @@
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
if(MOB_SIZE_SMALL)
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
if(MOB_SIZE_HUMAN)
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
if(MOB_SIZE_LARGE)
|
||||
w_class = WEIGHT_CLASS_HUGE
|
||||
RegisterSignal(src, COMSIG_CLICK_SHIFT, .proc/examine_held_mob)
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
if(rh_icon)
|
||||
righthand_file = rh_icon
|
||||
|
||||
/* This has no need to exist as default assimilate already got it all covered
|
||||
/obj/item/clothing/head/mob_holder/micro/proc/assimilate(mob/living/M)
|
||||
switch(M.mob_size)
|
||||
if(MOB_SIZE_TINY)
|
||||
@@ -43,6 +44,7 @@
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
if(MOB_SIZE_LARGE)
|
||||
w_class = WEIGHT_CLASS_HUGE
|
||||
*/
|
||||
|
||||
|
||||
/obj/item/clothing/head/mob_holder/micro/Destroy()
|
||||
@@ -73,6 +75,8 @@
|
||||
visible_message("<span class='warning'>[src] escapes [L]!")
|
||||
release()
|
||||
|
||||
//The following code has been disabled, hopefully temporarily. - HS13 elements update
|
||||
/*
|
||||
/mob/living/proc/mob_pickup_micro(mob/living/L)
|
||||
var/obj/item/clothing/head/mob_holder/micro/holder = generate_mob_holder()
|
||||
if(!holder)
|
||||
@@ -124,6 +128,8 @@
|
||||
if(mob_try_pickup_micro(user))
|
||||
return TRUE
|
||||
|
||||
*/
|
||||
|
||||
/obj/item/clothing/head/mob_holder/micro/assume_air(datum/gas_mixture/env)
|
||||
var/atom/location = loc
|
||||
if(!loc)
|
||||
|
||||
@@ -162,7 +162,7 @@ mob/living/get_effective_size()
|
||||
else
|
||||
if(istype(H) && H.dna.features["taur"] == "Naga" || H.dna.features["taur"] == "Tentacle")
|
||||
tmob.visible_message("<span class='danger'>[src] snatches up [tmob] underneath their tail!</span>", "<span class='userdanger'>[src]'s tail winds around you and snatches you in its coils!</span>")
|
||||
//tmob.mob_pickup_micro_feet(H)
|
||||
//tmob.mob_pickup_micro_feet(H) //These two procs have been disabled. Hopefully temporarily.
|
||||
else
|
||||
tmob.visible_message("<span class='danger'>[src] stomps down on [tmob], curling their toes and picking them up!</span>", "<span class='userdanger'>[src]'s toes pin you down and curl around you, picking you up!</span>")
|
||||
//tmob.mob_pickup_micro_feet(H)
|
||||
|
||||
+1
-1
@@ -2931,7 +2931,7 @@
|
||||
#include "hyperstation\code\modules\crafting\recipes.dm"
|
||||
#include "hyperstation\code\modules\integrated_electronics\input.dm"
|
||||
#include "hyperstation\code\modules\patreon\patreon.dm"
|
||||
// #include "hyperstation\code\modules\resize\holder_micro.dm"
|
||||
#include "hyperstation\code\modules\resize\holder_micro.dm"
|
||||
#include "hyperstation\code\modules\resize\resizing.dm"
|
||||
#include "hyperstation\code\modules\resize\sizechems.dm"
|
||||
#include "hyperstation\code\modules\resize\sizegun.dm"
|
||||
|
||||
Reference in New Issue
Block a user