View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001167 | The Dark Mod | Coding | public | 24.09.2008 11:00 | 29.06.2009 08:06 |
| Reporter | Ishtvan | Assigned To | Ishtvan | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Summary | 0001167: Leaned player invisible to, unshootable by AI | ||||
| Description | I tried setting myself notarget, making a big stack of crates, clearing notarget and leaning out in test_archer to see if he would shoot me. He didn't even see me until I stepped out from behind the crates. Can't comment on whether he would have shot at me, since he seems to be charging me with his nonexistant sword for some reason. | ||||
| Tags | No tags attached. | ||||
|
Bump. I believe this has to do with the 4 points used for occlusion detection. Back when it was just the eye point, AI could see you when you leaned out because your head was the only occlusion point they tracked. Now that we're using left and right shoulder, those points don't seem to track with the leaned player. A possible fix would be to make the top 2 shoulder points relative to the player view position, not the player origin. Detecting collisions from projectiles on a leaned player is more involved, but at least if the AI see you, melee AI will be able to run up and lay on the hurt. |
|
|
Looking at the code, it already it does use the eye position and should already take into account the leaned player axis. It should already work. I tested it with the archer in test_archer, and he never alerted when I leaned out in full brightness from some boxes. Maybe I'll test in some other conditions. Aha, it's because GetEyePosition is not a virtual function and the pointer is an idActor pointer. I'll change it to a virtual function on idActor so it should work for leaned players again. |
|
| visibility issue fixed, will spin off collision issue as new report | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 24.09.2008 11:00 | Ishtvan | New Issue | |
| 15.10.2008 23:19 | Ishtvan | Note Added: 0002062 | |
| 16.10.2008 06:16 | Ishtvan | Note Added: 0002067 | |
| 16.10.2008 06:18 | Ishtvan | Note Edited: 0002067 | |
| 16.10.2008 06:22 | Ishtvan | Note Edited: 0002067 | |
| 16.10.2008 07:15 | Ishtvan | Note Added: 0002068 | |
| 16.10.2008 07:15 | Ishtvan | Status | new => resolved |
| 16.10.2008 07:15 | Ishtvan | Resolution | open => fixed |
| 16.10.2008 07:15 | Ishtvan | Assigned To | => Ishtvan |
| 29.06.2009 08:06 | greebo | Status | resolved => closed |