OpenXRay / OpenXRay/xray-16

CS - The character from mission rescue Wolfs brother cant reload weapon

Open
#2,115 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Vanilla Bug
Dominant language
C++
Stars
3.6k
Forks
536
Avg merge
6d 1h
Merged PRs (30d)
3

Description

Describe the bug
the mission Rescue Wolf's brother from captivity

Rescue_Wolfs_brother.zip

  1. In the mission when you want to give him the weapon if the weapon is empty he wont equip it or shoot the mutants. When he dies you will find that he had ammo in his inventory. If you give him loaded shotgun he will use only the loaded ammo and unequip rifle when he is out of ammo, he does not reload even if you will find ammo in his inventory. The main bug is character inability to reload weapon.

To Reproduce
Steps to reproduce the behavior:

  1. load attached saved game - Go to Rescue Wolf's brother from captivity
  2. Unload shotgun
  3. select in dialog take this shotgun
  4. escort the character and observe, he wont equip empty weapon and he wont reload. He has ammo in his inventory.

Expected behavior
The Wolfs brother should take unloaded rifle and reload it.
If you handle him loaded rifle he should reload it when it goes empty because he has additional ammo on him.

Screenshots, videos

https://github.com/user-attachments/assets/3fc50fdd-3db5-4928-a5fb-ef925fb519ca

BugTrap error report
no crash report

OpenXRay Release Master Gold build 10012, Jul 7 2026 (Windows 64-bit, static)
GitHub Actions build 6385 (28850328479) from commit[29030f81b137f6ea5365b3d71f2b588490832f5b] branch[dev] (built by OpenXRay/xray-16)

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

Start with the attached Rescue_Wolfs_brother.zip save and reproduce the empty-shotgun and no-reload cases in the Rescue Wolf's brother from captivity mission. Then trace the C++ gameplay logic for NPC weapon equipping, inventory ammunition, and reloading. Done means Wolf's brother equips an empty weapon and reloads it from ammunition in his inventory.

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
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.