MODsuit module update: new stuff and improved old stuff (#67042)

Doubles the range of the MOD Pathfinder AI
Fixes modules rendering below the suit.
Adds the ability for modules to be used when inactive.
Documents/cleans up some code.
Updates some old descriptions and explains some concepts better.
Armor Booster and Ash Accretion can no longer boost your speed over no slowdown at all.
Makes flashlight module start with 4 instead of 3 range, so it's better for people that don't know about configuration.
Doubles t-ray module range, from 2 to 4 (t-ray scanner is 3).
Puts the noslip module lower in progression, lowers its' price to 2.
New sprites for the magnetic harness module by Onule.
Brings back the holster module, it can now be used when the suit is inactive, can be printed with security suit research.
Adds the power kick module for the ERT Commander. It's a powerful kick.
This commit is contained in:
Fikou
2022-05-18 01:19:31 -04:00
committed by GitHub
parent 30838d991c
commit f501b1e49e
26 changed files with 429 additions and 123 deletions
+39
View File
@@ -426,3 +426,42 @@
if(client?.combo_hud_enabled && client?.prefs?.toggles & COMBOHUD_LIGHTING)
return LIGHTING_PLANE_ALPHA_INVISIBLE
return initial(lighting_alpha)
/// Returns a generic path of the object based on the slot
/proc/get_path_by_slot(slot_id)
switch(slot_id)
if(ITEM_SLOT_BACK)
return /obj/item/storage/backpack
if(ITEM_SLOT_MASK)
return /obj/item/clothing/mask
if(ITEM_SLOT_NECK)
return /obj/item/clothing/neck
if(ITEM_SLOT_HANDCUFFED)
return /obj/item/restraints/handcuffs
if(ITEM_SLOT_LEGCUFFED)
return /obj/item/restraints/legcuffs
if(ITEM_SLOT_BELT)
return /obj/item/storage/belt
if(ITEM_SLOT_ID)
return /obj/item/card/id/advanced
if(ITEM_SLOT_EARS)
return /obj/item/clothing/ears
if(ITEM_SLOT_EYES)
return /obj/item/clothing/glasses
if(ITEM_SLOT_GLOVES)
return /obj/item/clothing/gloves
if(ITEM_SLOT_HEAD)
return /obj/item/clothing/head
if(ITEM_SLOT_FEET)
return /obj/item/clothing/shoes
if(ITEM_SLOT_OCLOTHING)
return /obj/item/clothing/suit
if(ITEM_SLOT_ICLOTHING)
return /obj/item/clothing/under
if(ITEM_SLOT_LPOCKET)
return /obj/item
if(ITEM_SLOT_RPOCKET)
return /obj/item
if(ITEM_SLOT_SUITSTORE)
return /obj/item
return null