Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPC can't reload - so his brain explodes #15508

Closed
mouseturd opened this issue Feb 21, 2016 · 6 comments

Comments

Projects
None yet
5 participants
@mouseturd
Copy link

commented Feb 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
explosion

@pisskop

This comment has been minimized.

Copy link
Contributor

commented Feb 21, 2016

This happens. A hostile NPC tried to reload a crossbow and kaput. And even static NPCs

@mouseturd

This comment has been minimized.

Copy link
Author

commented Feb 21, 2016

So it was inevitable?

@martin509

This comment has been minimized.

Copy link

commented Feb 21, 2016

Can confirm as of latest-lastest experimental that actually compiles. Happens for any weapon that needs reloading, pretty much.

@nanovad

This comment has been minimized.

Copy link
Contributor

commented Feb 21, 2016

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.

@dbackeus

This comment has been minimized.

Copy link

commented Feb 23, 2016

+1

@nanovad

This comment has been minimized.

Copy link
Contributor

commented Apr 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.