Skip to content

[NPCs] npc_sniper fails to acquire player if they respawn after dying to them #198

@arbabf

Description

@arbabf

Describe the bug

If the player respawns using the hl2_gamerules entity, and they died to an npc_sniper, that npc_sniper fails to acquire them when they get into their line of sight.

Steps to reproduce

Steps to reproduce the behavior:

  1. Place an npc_sniper down.
  2. Die to the npc_sniper.
  3. Walk into its line of sight.
  4. You do not get acquired as a target.

Expected behavior

Sniper reacquires player as a target like other NPCs do.


Additional context

Respawning the same npc_sniper (e.g. through an npc_template_maker) fixes the issue, so I guess this issue can be solved with map logic as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions