[NPC] solution for attacking through walls?
Posted: Tue Jan 31, 2017 12:42 pm
While doing the epic weapons questlines, I came across this slightly annoying problem of mobs attacking you although they're on the other side of a wall ending in a gang bang of respawning mobs.
Right now, there doesn't seem to be a line of sight (los) check for mobs, just a bubble shaped range check, although there is a los check for players against players. I know that PVE has no priority right now but there might be an easy (?) solution to this tiny nuisance.
How about cloning the los check for player/player interactions and treat the NPCs as a player? Keep the range activation for mobs but shove that bit into the activation, also add a one sec recheck timer for the los of the mobs still in the potential activation range.
Ofc all under the assumption that this bit of code needed can be cloned and isn't spread over several classes like butter on a slice of hot toast or entering the fields of unknown code.
Right now, there doesn't seem to be a line of sight (los) check for mobs, just a bubble shaped range check, although there is a los check for players against players. I know that PVE has no priority right now but there might be an easy (?) solution to this tiny nuisance.
How about cloning the los check for player/player interactions and treat the NPCs as a player? Keep the range activation for mobs but shove that bit into the activation, also add a one sec recheck timer for the los of the mobs still in the potential activation range.
Ofc all under the assumption that this bit of code needed can be cloned and isn't spread over several classes like butter on a slice of hot toast or entering the fields of unknown code.