[DRAFT: RELIES ON #2017/GH-1947_KDHudReplace] Fix local player's players killed report not resetting each round#2018
Draft
nullsystem wants to merge 5 commits into
Draft
Conversation
Damage infos from the killer-damage HUD now comes up in the scoreboard instead. Killer-damage HUD now reduce to just a killer HUD that's a smaller box in the bottom-ish center. Added ability to show avatar also which is taken from the scoreboard's avatars management. Taken/dealt now shows up as columns in the scoreboard when dead. "Deaths" column name renamed to "D", spaced of 2 characters length. Renamed variables/files/class names to reflect better their role. Also updated console damage report to be written out more like in the OG:NT plugin's aside from the killer line. * fixes NeotokyoRebuild#1947 * fixes NeotokyoRebuild#1650 * fixes NeotokyoRebuild#1945
Two fixes: First m_bFirstAliveTick never gets updated when the player respawns past the first respawn since not dying on a round will not turn this to true and the respawn resets through m_bFirstAliveTick for local player in PreThink doesn't get utilized. This may also be the cause of other non-reset issues people seen before, but this has affected the killed players report especially. Second, move the array from C_NEO_Player into its own global array as really it's only a single instance (for the local player) and pointless for every single C_NEO_Player to hold it. For sanity check, change from it being entity index array based to UserID based to be sure which is which when its displayed and not affected by entity index changes. * fixes NeotokyoRebuild#1874
Now the c_neo_player first tick alive got fixed, can just do it there.
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.
Description
Review and merge in the linked branch/PR first: #2017
Two fixes: First m_bFirstAliveTick never gets updated when the player respawns past the first respawn since not dying on a round will not turn this to true and the respawn resets through m_bFirstAliveTick for local player in PreThink doesn't get utilized. This may also be the cause of other non-reset issues people seen before, but this has affected the killed players report especially.
Second, move the array from C_NEO_Player into its own global array as really it's only a single instance (for the local player) and pointless for every single C_NEO_Player to hold it. For sanity check, change from it being entity index array based to UserID based to be sure which is which when its displayed and not affected by entity index changes.
Toolchain
Linked Issues