mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-30 11:01:35 +00:00
## About The Pull Request fixes #82838, forgot to add the attack_self there fixes #82869 fixes the atmos hardhat not using flags_inv and transparent_protection correctly (you could pull off someones glasses through it for example makes modsuits use the new rendering stuff fixes rendering stuff not working correctly with adjustable clothing fixes quick equip dropping the item if you cant equip it ## Why It's Good For The Game waow its awesome ## Changelog 🆑 fix: you can no longer take off someones glasses or mask through atmos hardhat fix: once you adjust a welding helmet or something it no longer makes your cigarette or sunglasses invisible fix: welding gas mask works once again fix: quick equips dont drop the item if you cant equip it /🆑
144 lines
4.3 KiB
Plaintext
144 lines
4.3 KiB
Plaintext
//Most of these are defined at this level to reduce on checks elsewhere in the code.
|
|
//Having them here also makes for a nice reference list of the various overlay-updating procs available
|
|
|
|
///Redraws the entire mob. For carbons, this is rather expensive, please use the individual update_X procs.
|
|
/mob/proc/regenerate_icons() //TODO: phase this out completely if possible
|
|
return
|
|
|
|
///Updates every item slot passed into it.
|
|
/mob/proc/update_clothing(slot_flags)
|
|
if(slot_flags & ITEM_SLOT_BACK)
|
|
update_worn_back()
|
|
if(slot_flags & ITEM_SLOT_MASK)
|
|
update_worn_mask()
|
|
if(slot_flags & ITEM_SLOT_NECK)
|
|
update_worn_neck()
|
|
if(slot_flags & ITEM_SLOT_HANDCUFFED)
|
|
update_worn_handcuffs()
|
|
if(slot_flags & ITEM_SLOT_LEGCUFFED)
|
|
update_worn_legcuffs()
|
|
if(slot_flags & ITEM_SLOT_BELT)
|
|
update_worn_belt()
|
|
if(slot_flags & ITEM_SLOT_ID)
|
|
update_worn_id()
|
|
if(slot_flags & ITEM_SLOT_EARS)
|
|
update_worn_ears()
|
|
if(slot_flags & ITEM_SLOT_EYES)
|
|
update_worn_glasses()
|
|
if(slot_flags & ITEM_SLOT_GLOVES)
|
|
update_worn_gloves()
|
|
if(slot_flags & ITEM_SLOT_HEAD)
|
|
update_worn_head()
|
|
if(slot_flags & ITEM_SLOT_FEET)
|
|
update_worn_shoes()
|
|
if(slot_flags & ITEM_SLOT_OCLOTHING)
|
|
update_worn_oversuit()
|
|
if(slot_flags & ITEM_SLOT_ICLOTHING)
|
|
update_worn_undersuit()
|
|
if(slot_flags & ITEM_SLOT_SUITSTORE)
|
|
update_suit_storage()
|
|
if(slot_flags & (ITEM_SLOT_LPOCKET|ITEM_SLOT_RPOCKET))
|
|
update_pockets()
|
|
if(slot_flags & ITEM_SLOT_HANDS)
|
|
update_held_items()
|
|
|
|
///Updates item slots obscured by this item (or using an override of flags to check)
|
|
/mob/proc/update_obscured_slots(obscured_flags)
|
|
if(obscured_flags & HIDEGLOVES)
|
|
update_worn_gloves(update_obscured = FALSE)
|
|
if(obscured_flags & HIDESUITSTORAGE)
|
|
update_suit_storage(update_obscured = FALSE)
|
|
if(obscured_flags & HIDEJUMPSUIT)
|
|
update_worn_undersuit(update_obscured = FALSE)
|
|
if(obscured_flags & HIDESHOES)
|
|
update_worn_shoes(update_obscured = FALSE)
|
|
if(obscured_flags & HIDEMASK)
|
|
update_worn_mask(update_obscured = FALSE)
|
|
if(obscured_flags & HIDEEARS)
|
|
update_worn_ears(update_obscured = FALSE)
|
|
if(obscured_flags & HIDEEYES)
|
|
update_worn_glasses(update_obscured = FALSE)
|
|
if(obscured_flags & HIDENECK)
|
|
update_worn_neck(update_obscured = FALSE)
|
|
if(obscured_flags & HIDEHEADGEAR)
|
|
update_worn_head(update_obscured = FALSE)
|
|
|
|
/mob/proc/update_icons()
|
|
return
|
|
|
|
///Updates the handcuff overlay & HUD element.
|
|
/mob/proc/update_worn_handcuffs(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the legcuff overlay & HUD element.
|
|
/mob/proc/update_worn_legcuffs(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the back overlay & HUD element.
|
|
/mob/proc/update_worn_back(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the held items overlay(s) & HUD element.
|
|
/mob/proc/update_held_items()
|
|
SHOULD_CALL_PARENT(TRUE)
|
|
SEND_SIGNAL(src, COMSIG_MOB_UPDATE_HELD_ITEMS)
|
|
|
|
///Updates the mask overlay & HUD element.
|
|
/mob/proc/update_worn_mask(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the neck overlay & HUD element.
|
|
/mob/proc/update_worn_neck(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the oversuit overlay & HUD element.
|
|
/mob/proc/update_worn_oversuit(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the undersuit/uniform overlay & HUD element.
|
|
/mob/proc/update_worn_undersuit(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the belt overlay & HUD element.
|
|
/mob/proc/update_worn_belt(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the on-head overlay & HUD element.
|
|
/mob/proc/update_worn_head(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates every part of a carbon's body. Including parts, mutant parts, lips, underwear, and socks.
|
|
/mob/proc/update_body()
|
|
return
|
|
|
|
/mob/proc/update_hair()
|
|
return
|
|
|
|
///Updates the glasses overlay & HUD element.
|
|
/mob/proc/update_worn_glasses(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the id overlay & HUD element.
|
|
/mob/proc/update_worn_id(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the shoes overlay & HUD element.
|
|
/mob/proc/update_worn_shoes(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the glasses overlay & HUD element.
|
|
/mob/proc/update_worn_gloves(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the suit storage overlay & HUD element.
|
|
/mob/proc/update_suit_storage(update_obscured = FALSE)
|
|
return
|
|
|
|
///Updates the pocket overlay & HUD element.
|
|
/mob/proc/update_pockets()
|
|
return
|
|
|
|
///Updates the headset overlay & HUD element.
|
|
/mob/proc/update_worn_ears(update_obscured = FALSE)
|
|
return
|