[TF2] Changed player-dropped ammo boxes to be more dynamic #1620
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.
Currently, player-dropped ammo boxes always give 100 metal, unless it drops from an Engineer with less than 100 metal. Medium ammo boxes on the map give half the current Engineer's max metal instead. In a game mode like Mann vs. Machine or a map like Freaky Fair, this means player-dropped ammo boxes give 100 metal while map ammo boxes can give up to 300.
This PR changes this to also give half the Engineer's current metal, unless the player-dropped ammo box contains <100 metal (in which case it's an Engineer's leftover metal) then it simply gives the amount of metal in the box.
Note that this is less of a fix, and more of a gameplay change to make it consistent with ammo boxes on the map. An alternate version that scales Engineer-dropped ammo (while still giving less metal than if they dropped a box with full metal) is availabe at #1621 (which is the one I would recommend over this one, personally, but I don't know how important the original intent was). Building gibs use the same system as player-dropped ammo boxes, but still give the exact same metal as they did before (in both PRs).