]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
monsters: improve following and wandering behaviour
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 12 Mar 2024 21:26:04 +0000 (07:26 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 08:14:10 +0000 (18:14 +1000)
commitedb94f749377cdb6de202153af30b742b3b3af42
tree0b8fcb925789808092e1de706de5e0430f5889ed
parent11ea4700429c2f5e1d9058cd1679151f984b8a3e
monsters: improve following and wandering behaviour

Makes monsters wander around the player they're following when nearby,
and wander towards the player using the follow update interval when
further away.
This prevents them clustering tightly around the player and increases
their chance of overcoming trivial obstacles.

Fixes trying to walk into walls.
qcsrc/common/monsters/sv_monsters.qc