Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions lua/NS2Plus/Server/CHUD_ServerStats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,13 @@ originalUpdateScore = Class_ReplaceMethod("PlayerInfoEntity", "UpdateScore",
stat.playerName = self.playerName
stat.hiveSkill = self.playerSkill
stat.isRookie = self.isRookie

-- stat.hiveSkillOffset = self.hiveSkillOffset
-- Above does not work, so we mimic what should have been in PlayerInfoEntity.lua
local scorePlayer = Shared.GetEntity(self.playerId)
if HasMixin(scorePlayer, "Scoring") then
stat.hiveSkillOffset = scorePlayer:GetPlayerSkillOffset()
end
end

end
Expand Down Expand Up @@ -924,9 +931,14 @@ local function FormatRoundStats()

local accuracy, accuracyOnos = CHUDGetAccuracy(entry.hits, entry.misses, entry.onosHits)

statEntry.isMarine = teamNumber == 1
if teamNumber == 1 then
statEntry.isMarine = true
statEntry.hiveSkill = stats.hiveSkill + stats.hiveSkillOffset
else
statEntry.isMarine = false
statEntry.hiveSkill = stats.hiveSkill - stats.hiveSkillOffset
end
statEntry.playerName = stats.playerName
statEntry.hiveSkill = stats.hiveSkill
statEntry.kills = entry.kills
statEntry.killstreak = entry.killstreak
statEntry.assists = entry.assists
Expand Down