View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002464 | The Dark Mod | Coding | public | 07.12.2010 20:00 | 03.06.2011 03:58 |
Reporter | Springheel | Assigned To | grayman | ||
Priority | normal | Severity | normal | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | TDM 1.04 | Fixed in Version | TDM 1.04 | ||
Summary | 0002464: Sleeping AI respond to greetings | ||||
Description | I've seen this twice now in test/sleep.map. One of the standing AI will say a greeing and the sleeping guard responds. | ||||
Tags | No tags attached. | ||||
Noticed this again...the AI actually opens his eyes and turns his head towards the person he's talking to. Kind of amusing. Grayman notes: A quick peek at the code says the only criteria for a possible greeting (and response) is that the AI are within 230 units of each other, and each can see the other's eyes. There's no check that I can see for one being asleep. |
|
The fix is a trivial check to see if the AI being greeted is sleeping. Note that if an AI is in the act of lying down, there's a short moment when he's prone and not sleeping when a greeting can slip in. Shortly after, he's asleep. I think this is okay, like he's saying g'nite to someone. |
|
This fix is coded, but I'll hold it for 1.04. | |
Added a check to not issue a greeting if the AI being greeted is asleep. rev 4384: State.cpp |
|
Date Modified | Username | Field | Change |
---|---|---|---|
07.12.2010 20:00 | Springheel | New Issue | |
08.12.2010 01:55 | Springheel | Note Added: 0003376 | |
08.12.2010 03:11 | grayman | Note Added: 0003377 | |
08.12.2010 03:11 | grayman | Assigned To | => grayman |
08.12.2010 03:11 | grayman | Reproducibility | have not tried => always |
08.12.2010 03:11 | grayman | Status | new => confirmed |
08.12.2010 12:55 | grayman | Note Added: 0003378 | |
23.12.2010 15:54 | grayman | Fixed in Version | => TDM 1.04 |
23.12.2010 15:54 | grayman | Target Version | => TDM 1.04 |
26.12.2010 00:58 | grayman | Note Added: 0003405 | |
26.12.2010 00:58 | grayman | Status | confirmed => resolved |
26.12.2010 00:58 | grayman | Resolution | open => fixed |
03.06.2011 03:58 | greebo | Status | resolved => closed |