I think npc emotions would be cool! Here are some examples:
- Triggers:
Aiming at the npc, may cause fear or anger.
Shooting near the npc, high chance of causing fear, but a WAY lower chace of causing anger (anger basically means that they will start attacking you).
Witnessing another npc be killed, first shock and then a high chance of fear and a lower chance of anger.
After a while they will return to their normal (or idle) phase.
- Emotional States:
Calm(idle) - No danger is present
Scared - When the npc feels threatened
Angry(or a better word: Hostile) - When armed and feels threatened the npc will be ready to fight.
- Voice lines:
Scared: “P-please don’t hurt me.” / “P-please don’t shoot.” / ”Just don’t hurt me please!” / “I don’t want any trouble.”
Angry(Hostile): “Oh you’re so dead!” / “Come here and fight me!” / “Try me, i dare you!”
- Example:
You aim the weapon at an unarmed npc and one of the scared voice lines start playing, and maybe even his face turns into a scared emotion, but that’s up to you (everything that i suggest is ofc up to u to tho)
You aim your weapon at an armed npc and he will enter the angry(hostile) state where he aims his weapon at you and starts shooting while saying one of the voice lines, or he might run at you if he has a melee while shouting.
If the threat disappears (for example you lower your weapon) he gradually starts going more towards his normal phase (only works on npc’s in the scared phase)