Medbots Still Overdosing People

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

Medbots Still Overdosing People

Post by Surrealistik » 05 Jan 2017, 14:46

Bug Description:

Medbots overdose people by targeting the same patient and injecting him (3x simultaneous 15U injections, thereby circumventing the usual Medbot safeties against it):

http://i.imgur.com/wzvYMgo.png

Medbots should at a minimum be changed so that they don't target a patient another Medbot is already tending to, at least when the safeties are active.


Steps to reproduce:
1. Build 3 Medbots
2. Watch as 3 Medbots gangrape a marine with 45U Tricord and overdose him.
3. Get mad/post on forums.
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
Surrealistik
Registered user
Posts: 1870
Joined: 04 Jul 2015, 17:57

Re: Medbots Still Overdosing People

Post by Surrealistik » 10 Jan 2017, 14:06

Since I understand Apop doesn't want to add a variable to humans or create a patient array, just giving the Medbots a stationary mode so they don't follow marines to the point of creating a critical mass of 3+, and to prevent said critical mass from becoming an actual problem would work too.

Further, adding a safety check such that a Medbot stops attempting to treat a patient if it detects another Medbot already adjacent to its patient.
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
dylanstrategie
Registered user
Posts: 201
Joined: 20 Jul 2016, 16:20

Re: Medbots Still Overdosing People

Post by dylanstrategie » 14 Jan 2017, 20:14

Seems to be an issue with simultaneous injections

If there's a delay, a busy check might be enough. Otherwise, this is going to be a bit more tricky. Global list might be needed

Locked