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

Arrows detonate bullets #36636

Open
ghost opened this issue Jan 2, 2020 · 2 comments
Open

Arrows detonate bullets #36636

ghost opened this issue Jan 2, 2020 · 2 comments
Labels
<Bug> This needs to be fixed Items / Item Actions / Item Qualities Items and how they work and interact Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics

Comments

@ghost
Copy link

ghost commented Jan 2, 2020

Describe the bug

Bullets on ground get detonated by fired arrows (at least in certain circumstances, see below), presumably by thrown rocks as well

Steps To Reproduce

Have (well armored) NPC tank a group of Z's whilst PC shoots them with arrows, on occasion your tank will kill the Z you shoot at exactly as you fire resulting in arrow hitting ground(?) and - if there were any bullets there they will instantly detonate (flying projectile damages such and such ammo msg)

Expected behavior

Arrows not detonating bullets, actually (any) projectiles not detonating bullets - odds of hitting a primer of a bullet lying somewhere within a square meter with randomly fired arrow (especially one aimed at something humanoid standing there) should by astronomically low at best

Screenshots

Versions and configuration

Additional context

@8street
Copy link
Contributor

8street commented Jan 2, 2020

I will say more. Arrows detonate arrows in current build.

@Night-Pryanik Night-Pryanik added <Bug> This needs to be fixed Items / Item Actions / Item Qualities Items and how they work and interact Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics labels Jan 5, 2020
@kevingranade
Copy link
Member

kevingranade commented Mar 3, 2020

I can't see a way that this would trigger an explosion as written, but there is a possibility that some memory corruption or something is happening that makes this code:

explosion_handler::explosion( tp, proj.get_custom_explosion() );

trigger one.
Specifically it's possible something is writing to or corrupting the static custom_explosion field of the projectile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Items / Item Actions / Item Qualities Items and how they work and interact Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics
Projects
None yet
Development

No branches or pull requests

3 participants