Cataclysmanic / GO2022

4 stars 1 forks source link

give NPCs rudimentary "hearing" so they become alerted if a gunshot happens nearby #95

Closed plexsoup closed 1 year ago

plexsoup commented 1 year ago

NPCs on patrol routes won't notice the gunplay near them.

We either need to make them hear the gunshots and become alert, or change the gunshot noise to a silenced gun "thwip thwip" instead of "bang! bang!"

plexsoup commented 1 year ago

NPCs can hear nearby gunshots now.

Player signals city_map that there's a loud noise. City_map spawns a noise Area2D. Area2D gets signals for NPC bodies entering. Then NPC spawns alert notice above their head.