Add Safety Checks to MedBots

Locked
User avatar
Surrealistik
Registered user
Posts: 1870
Joined: 04 Jul 2015, 17:57

Add Safety Checks to MedBots

Post by Surrealistik » 06 Jul 2016, 18:43

Summary (a quick, 2-3 sentence summary):

Now that Tricordrazine deals brain damage on overdose, Medbots by default should cap their injections of Tricord at the OD threshold.


Benefits (How this will benefit the server and game as a whole):

Stops people from ODing due to overzealous Medbots; makes Medbots more useful.


Details (Description of how you think this would work, the benefits, etc):

Medbots now have a safety setting toggle.

While the safety is toggled on, whenever a Medbot is triggered to inject and treat a patient, it automatically adjusts the injection dosage such that it doesn't exceed the threshold for overdosing. For example, if a Medbot is set to inject 15 U of Tricord, and a patient has 25 U of Tricord in their system, it will reduce the dosage to 5 U (so it doesn't exceed the threshold of 30 U). If there is no safe dosage the Medbot can administer to a patient (because it has 30 U Tricord or more), it will ignore the patient until it can safely inject him.

While the safety is toggled off (which can only be done when the Medbot's controls are unlocked), it will follow its default behaviour.


Implementation (Optional, if you have an idea how to implement it):

Minor coding changes.
Sur 'Druglord' Lahzar; Field Engineer, Perpetually Understaffed and Exasperated CMO/Doctor/Researcher
Bando 'Baldboi' Badderson; PFC, Five foot ten of pure bald glory.

Field Engineer Guide
Medbay Guide
Utility PFC Guide

User avatar
KingKire
Registered user
Posts: 893
Joined: 30 May 2016, 11:53

Re: Add Safety Checks to MedBots

Post by KingKire » 04 Aug 2016, 14:11

+1 Bump. Dont want medibots givin people the ol' death by a robots love routine.
Gaze upon me,
for I have wandered deep into the ancient tombs of knowledge to which lie madness and sorrow, cleansing a path for all those who walk behind me...


...

But seriously, does uh, anyone know the way out?!


~Furthermore, I consider that Floodlights should no longer be destroyed.~

User avatar
forwardslashN
Community Contributor
Community Contributor
Posts: 2495
Joined: 14 Dec 2015, 23:12
Byond: forwardslashN

Re: Add Safety Checks to MedBots

Post by forwardslashN » 04 Aug 2016, 15:12

This seems pretty reasonable.
Image
The ambivalent giant white baldie in a jungle near you.

User avatar
apophis775
Host
Host
Posts: 6985
Joined: 22 Aug 2014, 18:05
Location: Ice Colony
Byond: Apophis775
Contact:

Re: Add Safety Checks to MedBots

Post by apophis775 » 26 Aug 2016, 18:44

Accepted.
ImageImage
flamecow wrote: "unga dunga me want the attachment" - average marine

User avatar
Surrealistik
Registered user
Posts: 1870
Joined: 04 Jul 2015, 17:57

Re: Add Safety Checks to MedBots

Post by Surrealistik » 02 Jan 2017, 14:55

AI needs to be further improved as ODs remain common: viewtopic.php?t=10101&view=unread#unread
Sur 'Druglord' Lahzar; Field Engineer, Perpetually Understaffed and Exasperated CMO/Doctor/Researcher
Bando 'Baldboi' Badderson; PFC, Five foot ten of pure bald glory.

Field Engineer Guide
Medbay Guide
Utility PFC Guide

User avatar
Snypehunter007
Registered user
Posts: 2750
Joined: 02 Dec 2015, 17:14
Location: Georgia
Byond: Snypehunter007
Contact:

Re: Add Safety Checks to MedBots

Post by Snypehunter007 » 25 Jul 2017, 00:41

Moved to the new GitLab suggestion system.
Reached "Leet" post status on 3/14/17.
Death of the Suggestion Killer - 11/30/2017

Staff History:
► Show Spoiler
Image

Locked