Spellcaster Studios

Make it happen…

Indoor behaviors

Been working on the indoor behaviors… They’re slightly different than the outdoor behaviors, because they have to be constrained to the some indoor area/room.

screen307

Some stuff is going horribly wrong, although I can’t pinpoint it… For example, a lot of times, the enemies will run outside, instead of finding cover inside the base…

I think the problem is that I’m looking at the minimum distance that has no line of sight towards the aggressor, instead of looking at the path length; this means that sometimes is “closer” to go outside than around the next door, because I just account for linear distance.

The reason I’m doing this is so I don’t have to compute the path for all the “probe points”, but I don’t know if that’s possible at all to avoid. I could check LOS from the enemy to the probe, but that would skip some potentially good points (namely most of them, if the player was in a straight line with the enemy).

I’ll have to check the performance hit…

Now listening to “Zero Order” by “Re:aktor”

Link of the Day: Well, I’ve been playing WoW again, so I’ve spent too much time on sites such as this: http://www.icy-veins.com/

Comment