just a useless bspc observation about farplanedist


(shadowspawn) #1

This isn’t a q3map flaw, just something I saw that was kinda funny.

I was experimenting some new code with the ai again and was using a few bots as a screensaver (hey, sometimes its better then some of the openGL ones) on a small testmod using a farplanedist map; I was just zoning out thinking about something else and noticed out of the corner of my eye that the bots would sometimes shoot out of nowhere at walls. Not the normal ‘kill the dead person even more’ shots, but blatently shooting at walls and then go on their merry way. Ok, so I went back to the default modsource and recompiled jic I ganked something, and noticed the same thing.

I then went and made a debug build and noticed that when another bot fired i’d see the ones in question print out their changing targets, and some of those targets were someplace that they shouldn’t ‘see’ as a reaction to the one that fired last. Some events are broadcast, some aren’t, and the bots will aquire a new target even tho there is structure there.

I’d imagine most are using farplanedist with a reach that’s farther then most ai’s scope of awareness (except maybe sniper-bot whores) so the point is really quite a moot one, hence the topic.

After playing around, it seems like you can adjust if you can read the key and compensate (mod) or are really creative with the bot clusters, I just grid’d them around the vis viewer plugin and it seemed to reduce it.