View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004691 | The Dark Mod | AI | public | 02.12.2017 03:55 | 03.12.2018 17:45 |
Reporter | grayman | Assigned To | grayman | ||
Priority | normal | Severity | normal | Reproducibility | random |
Status | resolved | Resolution | fixed | ||
Product Version | TDM 2.05 | ||||
Target Version | TDM 2.07 | Fixed in Version | TDM 2.07 | ||
Summary | 0004691: AI sometimes try to relight a doused overhead light when it's too far off the floor. | ||||
Description | The problem is in the 2.05 code for SwitchOnLightState::Init(), at line 338: if (gameLocal.clip.TracePoint(result, startPoint, bottomPoint, MASK_OPAQUE, NULL)) That NULL should be _goalEnt, causing the trace to ignore the light itself. Somewhere between there and SwitchOnLightState::Think(), line 592: idVec3 goalOrigin = _goalEnt->GetPhysics()->GetOrigin(); _goalEnt becomes NULL. Don't know why at this point. If _goalEnt is too high for the AI to reach, SwitchOnLightState::Think() should never run. | ||||
Tags | No tags attached. | ||||
Since this was filed so long ago, and I didn't note the original circumstances where the problem was seen, I replicated an overhead light as best I could. The code worked fine. I went ahead and made the first change that I noted at the time, and checked for a NULL _goalEnt as the second change. I'll put this on feedback in case anyone notices a problem before 2.07 gets released, at which point I'll have a better example. |
|
Rev 7687: SwitchOnLightState.cpp |
|
No one's reported anything in 3 months, so I'm calling this resolved. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
02.12.2017 03:55 | grayman | New Issue | |
02.12.2017 03:55 | grayman | Status | new => assigned |
02.12.2017 03:55 | grayman | Assigned To | => grayman |
04.09.2018 02:35 | grayman | Note Added: 0010755 | |
04.09.2018 02:40 | grayman | Note Added: 0010756 | |
04.09.2018 02:40 | grayman | Status | assigned => feedback |
04.09.2018 02:40 | grayman | Resolution | open => fixed |
04.09.2018 02:40 | grayman | Fixed in Version | => TDM 2.07 |
03.12.2018 17:41 | grayman | Note Added: 0010813 | |
03.12.2018 17:41 | grayman | Status | feedback => assigned |
03.12.2018 17:41 | grayman | Status | assigned => resolved |
03.12.2018 17:45 | grayman | Note Edited: 0010813 |