-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move ammo effects to JSON #36919
Move ammo effects to JSON #36919
Conversation
I won't review my own code :D |
Erm... you're axing the Raufoss explosion? |
Original branch was created when |
PR is already pretty big now, so notes for the future:
P.S.: Whole |
Pretty sure this is caused by this PR |
Summary
SUMMARY: Infrastructure "Move ammo effects to JSON"
Purpose of change
Hardcoded ammo effects were restrictive. Now explosive projectiles can define
explosion
objects and they won't all behave the same.Describe the solution
Hijack Serg's code from last October to use generic factory for
ammo_effect
objects. Made some updates to that, removed hardcoded behaviors forFLAME
andNO_BOOM
.Testing
Ammo effects behave as expected in game.
Additional context
We should allow defining ammo effect objects in the
effects
array of an ammo item. There are also some hardcoded behaviors left for some ammo effects that should be removed at a later date. This doesn't change the behavior of any ammo effects exceptFLAME
so we'll need to do a content pass to make sure grenades and such are behaving as they should.