noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
451 stars 25 forks source link

Sight range function added for NPC. #598

Open Ephreaym opened 1 year ago

Ephreaym commented 1 year ago

A sight range function would be very welcome to improve the ability of the bots. It's probably similar to the speed and strength fix.

Ephreaym commented 12 months ago

Wouldn't mind an early update on this. :) Would improve the con and warriors a lot. Since now they're standing still listening more often while in range of enemy players.

dennwc commented 12 months ago

No updates for now, except that I did refactor AI system a bit. Could check how to remove/change this sight restriction.

dennwc commented 10 months ago

Whole AI pathfinding was ported, and there was some progress on the AI actions as well. Hopefully it should be possible to port the "is enemy visible" AI check next, so that we could customize it whatever we want.

Ephreaym commented 8 months ago

Not sure if it translates. But sight range is already adjustable in the mapeditor when you customize an NPC.

dennwc commented 8 months ago

That's definitely helpful :+1:

Ephreaym commented 5 months ago

Not sure if it’s more easy to implement instead of adding a new function. But maybe we could change the default sight range when a new npc is added with the createobject function to 500?