Source-1-Games
Source-1-Games copied to clipboard
[TF2] Inconsistent/erroneous deathcam weapon infobox placements
The TF2 Client currently has an issue where the deathcam weapon infobox (ie. Killer is carrying...) has issues properly placing itself on the screen:

The UI corrects itself if a player performs an in-game screenshot (default key 'F12'):
Perhaps the code for this repositioning could be utilized to position the HUD elements when an itembox is drawn (player is holding non-stock weapon)?
Captured on Windows client in 1920x1080 resolution
Possible duplicate of #2785.
Possible duplicate of #2785.
Seems similar, but it appears that bug report is about items with long descriptions having them get cut off (even though the box's Y position is correct), whereas this pertains to the general Y position being incorrect for some strange reason. Come to think of it, if the general position placement code for the element was updated to work a bit better, it would potentially resolve both issues. Get two birds stoned at once, so to speak.
Some additional info about this bug:
- The ypos value of the itempanel is completely ignored under all circumstances when read from freezepanel_basic.res.
- This bug only occurs when the previous deathcam showcases a different item; if you are killed with the same item twice, the panel appears correctly.
- The bug is related to the resizing of the panel; using
"resize_to_text" "0"fixes the bug (this is not tenable of course since item names and attributes are not all the same size).
This bug only occurs when the previous deathcam showcases a different item; if you are killed with the same item twice, the panel appears correctly.
Interesting quirk.
@rabscootle Latest fix for the Death Freeze bug should also solve this issue, according to the person who made the fix.
Not fixed, taken after first dying to a bot using the Killing Gloves of Boxing.
