Adds the match option to make missiles destructible#348
Open
luponix wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the ability to shoot down missiles that are in flight.
Missiles have 50% of their total damage value as hitpoints currently based statically on zeros tested numbers.
There are two interactions:
Projectiles can shoot down Missiles.
The result depends on the damage and hp values.
-> if the damage of the projectile exceeds the remaining hp of the missile then the missile explodes and the projectile continues.
-> if the damage of the projectile is lower than the remaining hp of the missile then the projectile gets destroyed and the missile loses health equal to the projectiles damage.
Missiles alsocan shoot down Missiles:
In that case both missiles take damage. The damage amount equals the damage of the missile with the lower damage.
Missiles that fall below 0 hp in this collision explode.
Authority over the physics handling and subsequent result lies with the Server.
Only clients that send the corresponding mptweak receive information about the destruction of projectiles/missiles.
The option to enable this setting is in the match settings which we should totally expand to have multiple pages at some point :D if only that didnt mean having to unify all the spread out patches for that exact menu.
If this is well received this might make for a good addition for anarchy presets as it turned out to be less obstructive than expected and turning into a nice quality of life feature of being able to shoot down creepers or if you really try hard also some of the faster missiles