RustRoguelike icon indicating copy to clipboard operation
RustRoguelike copied to clipboard

Alert State From Sounds

Open nsmryan opened this issue 3 years ago • 2 comments

Currently golems go directly from idle to attacking if they hear the player, go into investigating mode, turn around, see them, and then go into attacking mode.

This feels like it defeats the purpose of Alert mode, since golems can still go directly from idle to attacking you under some circumstances.

I added a way to get golems to face a sound, and then check whether they see the player. If they do, they are alert. If not, they investigate the sound position. This means that if they do not see the player, they immediately move towards the sound. We could have them wait a turn in this case as well.

nsmryan avatar May 30 '22 16:05 nsmryan

I would be fine with golems immediately moving towards sound or waiting a turn-- either way seems fine.

MicroChasm avatar May 30 '22 17:05 MicroChasm

The thing is that alert mode only fixes the problem with golems immediately attacking you if they happen to be facing towards you when you first see them. Currently this will work either way- whether they saw you first or they heard you first.

Lets try this way out for a bit and see if it works.

nsmryan avatar May 31 '22 15:05 nsmryan