gdquest-demos / godot-2d-space-game

A 2D space exploration and mining game made with Godot and our AI framework
MIT License
837 stars 109 forks source link

Enemies don't react to being shot from afar #40

Closed NathanLovato closed 4 years ago

NathanLovato commented 4 years ago

When shooting a pirate from a distance, the pirate squad doesn't react, so you can kill them freely. They should maybe start to chase the player?

Razoric480 commented 4 years ago

They used to, but I forgot to add it back in when I refactored the pirates to a state machine. The hurt signal still contains the shooter information, so it should be fairly simple to add back in.

simonv3 commented 4 years ago

I think I've got a fix for this, but I feel like it might clash a bit with the logic of the pursuit being called off?