ValveSoftware / ValveSoftware/source-sdk-2013

npc_citizen dont recieve damage

Open
#1,990 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10k
Forks
3k
Avg merge
8d 11h
Merged PRs (30d)
2

Description

It started when I added a custom NPC model that I downloaded and modified slightly. The QC file for this model didn't have any animations. I decided to copy the animations from male_01.qc to myModel.qc. But since I needed to increase the $origin, I deleted all $includemodel and copied the animations I needed from male_gestures.qc and male_shared.qc. Then I added the male_shared_anims and male_gestures_anims folders to hl2_misc_dir.vpk. That's when this bug occurred. I don't know how to fix it; I've deleted the files and redownloaded them from Steam several times.
The console also showed an error: scenes/Expressions/citizen_normal_idle_01.vcd missing from scenes.image. I fixed it, but the main bug still persists.

UPD. This bug only occurs with npc_citizen. Apparently, the issue is just with the NPC type. Also, npc_citizen takes damage from other NPCs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem with npc_citizen and the modified model, then compare the model setup with male_01.qc, male_gestures.qc, and male_shared.qc. Check the added animation folders in hl2_misc_dir.vpk and verify whether scenes/Expressions/citizen_normal_idle_01.vcd is present; done means npc_citizen receives expected damage without missing scene errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.