yquake2remaster/src
Yamagi Burmeister 935c37f819 Fix monsters ignoring the player under certain circumstances
In ai_checkattack() is a check against AI_SOUND_TARGET. If the player
made a noice and the the monster noticed this noise it's true. If
that noice was more than 5 seconds ago the monster forgets that event
and continues with it's search for the player. Otherwise it informs
the surrounding monsters that something interesting has happened and
then returns false. So the problem is: Even if the monster heard the
player and can see him, it aborts at this point.

Fix this by adding an additional visibility check. Do the sound
checking only if the player is not visible, otherwise just continue.

This was reported by shoober420 and debbuged by maraakate. This fix
was DanielGibons idea. This commit fixes issue #162.
2016-12-18 09:04:46 +01:00
..
backends Ensure that all keys are marked up when playing cinematics 2016-11-08 17:37:24 +01:00
client Treat autoexec.cfg like every other config. 2016-12-13 17:03:11 +01:00
common Treat autoexec.cfg like every other config. 2016-12-13 17:03:11 +01:00
game Fix monsters ignoring the player under certain circumstances 2016-12-18 09:04:46 +01:00
server Move file name check to prevent spurious "refusing to download messages 2015-10-27 17:38:28 +01:00