Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attacking an NPC without seeing him will not make him hostile #8830

Closed
3721assistant opened this issue Sep 4, 2014 · 4 comments
Closed

Attacking an NPC without seeing him will not make him hostile #8830

3721assistant opened this issue Sep 4, 2014 · 4 comments
Labels
<Bug> This needs to be fixed <Exploit> Unintended interactions or behavior, usually breaking how the game is balanced NPC / Factions NPCs, AI, Speech, Factions, Ownership

Comments

@3721assistant
Copy link
Contributor

Say, if you start at night, having some sort of ranged weapon, stand a tile away from the npc and shoot toward the tile the npc stands on, you can kill the npc without making him hostile.
Well, this can be explained in a way that cause it's at night so he can not see you either. But if you are invisible, attacking an npc while you can see him will enrage him.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@KA101 KA101 added Bug labels Sep 4, 2014
@KA101
Copy link
Contributor

KA101 commented Sep 4, 2014

Presumably applies to female NPCs too?

@3721assistant
Copy link
Contributor Author

Forgive about my English, may be I should use it instead? Anyway that's a way to kill an NPC without being attacked

@illi-kun illi-kun added the <Exploit> Unintended interactions or behavior, usually breaking how the game is balanced label Mar 4, 2018
@ghost
Copy link

ghost commented Sep 3, 2018

Perhaps an exception could be coded in for the player character in "npc.cpp" inside the "on_attacked" function, something like this:

capture

Gameplay wise, it would make sense as the NPC would assume that the first thing he/she sees is the player character and therefore he/she must have attacked them.

@Night-Pryanik
Copy link
Contributor

While working on #37664 I tested the case described in this issue and found it no longer valid. Firing at unseen NPC will make him hostile. So I guess this issue could be safely closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed <Exploit> Unintended interactions or behavior, usually breaking how the game is balanced NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

No branches or pull requests

4 participants