[TF2] Changed player-dropped ammo boxes to be more dynamic (alternate method) #1621
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.
Alternate version of #1620. The exact same thing applies to normal player-dropped ammo boxes, but Engineer-dropped ammo boxes with <100 metal give a bit more metal based on the max metal of the player picking it up. This prevents situations where a 90 metal ammo box gives 90 metal, while one with full metal would give 300 metal (compared to the other PR).
This PR scales the metal from an ammo box based on the current max metal of the Engineer that picked it up. I.e., an ammo box containing 90 metal is picked up by an Engineer with 600 max metal gives 270 metal instead of 90. An ammo box with 100 metal in that same situation gives 300 metal.