tttdamagelogs icon indicating copy to clipboard operation
tttdamagelogs copied to clipboard

Forcing a role does not work with tttdamagelogs

Open Alf21 opened this issue 6 years ago • 0 comments

Forcing / changing a role will not change the cached role in tttdamagelogs.

Change

... Damagelog:StrRole(v.role) 

into

local tmp = player.GetBySteamID64(v.steamid64)
... Damagelog:StrRole(IsValid(tmp) and tmp:GetRole() or v.role)

Or change networking! Do not cache steamid64, but the player object instead

Alf21 avatar Jul 14 '18 12:07 Alf21