Allow ammunition to burn and make small explosions with loud sounds #37399
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY: Feature "Allow ammunition to burn and create small explosions with loud sounds"
Purpose of change
Closes #25031
Allows bullets to be quickly dropped and lit ablaze to function like a firecracker and distract zombies with noise.
Describe the solution
This PR substantially decreases the rate at which a pile of ammo burns, creating an effect where a pile of ammo will burn like a string of firecrackers (with similar sound levels, as well).
The noise scales based on quantity, but plateaus out at ~30-40 noise even with many bullets. A pile of 25 rounds will make sounds ranging from 10-20 noise that go for about 8 turns based on my testing.
As suggested in the issue, the strength of the explosions is comparable to a firecracker for most piles of ammo greater than 10. The factor for blast radius is set to zero.
Describe alternatives you've considered
I explored the idea of making large piles of ammo have some explosive blast. Realistically speaking, you wouldn't get an explosive blast from burning ammo stores.
source: https://www.youtube.com/watch?v=R-yqVAK9uxo
Testing
I built CDDA in Visual Studio 2019 and tested burning different piles of ammunition. The new effect seems well balanced in my opinion. I went through several iterations of the explosion parameters.
Additional context
None.