Jump to content

Recommended Posts

Posted (edited)

Ziiro's was kind enough to give me his code on IPC limb reattachment and I thought it would be a fitting thing for paradise as well.
https://github.com/OracleStation/OracleStation/blob/c0db9c2b382007afc35192e40a05e613405ffd09/code/modules/surgery/bodyparts/bodyparts.dm#L64-L81
Here's the run down he gave me explaining this

"To translate what this is doing:

If you attack a person with a bodypart, it runs through this. Is the target of the attack a human? -> Do they have EASYLIMBATTACHMENT in their DNA? -> Is the bodypart organic and the target organic OR is the bodypart robotic and the target robotic? -> Do they complete this progress bar OR does someone else do it for them instantly? -> Attach limb

If any one of these checks fail, drop the attempt

Or, rather, treat it as a normal attack and whack them with the limb, actually"

Edited by Tykenn
Link to comment
https://www.paradisestation.org/forum/topic/13020-ipc-limb-reattachment/
Share on other sites

Posted

Would be sorta neat if slimes' could pop their limbs back on if they could find them, and only their limbs...but that'd be a lil broken sorta I guess. That said, yay good IPC change.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use