Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Forcing a role does not work with tttdamagelogs #366

Open
Alf21 opened this issue Jul 14, 2018 · 0 comments
Open

Forcing a role does not work with tttdamagelogs #366

Alf21 opened this issue Jul 14, 2018 · 0 comments

Comments

@Alf21
Copy link
Contributor

Alf21 commented Jul 14, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants