Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upNPC can't reload - so his brain explodes #15508
Comments
This comment has been minimized.
This comment has been minimized.
|
This happens. A hostile NPC tried to reload a crossbow and kaput. And even static NPCs |
This comment has been minimized.
This comment has been minimized.
|
So it was inevitable? |
This comment has been minimized.
This comment has been minimized.
martin509
commented
Feb 21, 2016
|
Can confirm as of latest-lastest experimental that actually compiles. Happens for any weapon that needs reloading, pretty much. |
This comment has been minimized.
This comment has been minimized.
|
I think this may be a side effect of @mugling's magazine changes. I haven't looked at the code, but the NPC might be looking for ammo that exists in inventory, but requires a magazine to use. EDIT: npcmove.cpp line 327 has a note: // todo handle reloading of empty magazines. |
This comment has been minimized.
This comment has been minimized.
dbackeus
commented
Feb 23, 2016
|
+1 |
kevingranade
closed this
in
#15582
Feb 28, 2016
This comment has been minimized.
This comment has been minimized.
|
I think an NPC's brain exploding just signifies there was an issue that
couldn't be resolved.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mouseturd commentedFeb 21, 2016
Running latest experimental 4374.

Issue happens a lot when I'm at the refugee center and a zombie gets inside.
NPC wielding a ranged weapon will attempt to fire at the zombie, but can't reload.
The following message appears:DEBUG: NPC_REload Failed: No usable ammo
The NPC's brain then explodes.
save.zip