Page 1 of 1
[b28] Creeping darkness does not block enemy targeting
Posted: Sat Jun 25, 2011 6:10 pm
by lukep
I expected Creeping Darkness as a Doomed to either act like a wall or like they were blind to me while I am behind it for the purposes of monster vision/targeting. It doesn't do anything regarding monsters targeting/seeing you, even though the description implies it should.
Re: [b28] Creeping darkness does not block enemy targeting
Posted: Mon Jun 27, 2011 6:31 pm
by benli
I'm pretty sure this is affecting other things like the alchemist's Smoke Bomb as well. Looking at the code I think some of the talent targeting logic was changed around and no longer respects line of sight. It only looks at line of movement. AI's only ask the question "Can I physically project this attack/talent to my current target?". It is a little hard to understand what would need to change, but I think the following things need to happen:
1) You SHOULD be able to project (canProject) an attack without line of sight.
2) You SHOULD be able to target (getTarget) something without line of sight (e.g. using telepathy).
3) You SHOULD NOT be able to target (getTarget) something that you cannot actually "see" with LOS or some kind of telepathy.
Based on that 1) and 2) work but 3) does not. I think the easiest fix is to change getTarget (or more specifically, aiSeeTargetPos) to only allow targeting of seen actors. I tested this fix and it seems to work ok. But it affects a lot.
This is probably affecting movement as well: allowing movement towards a location that should not be known. This has a much bigger impact on game play as bosses now track you down.