Skip to content

Fix "Tried to look up command thirdperson as if it were a variable." - #303

Open
queeek180 wants to merge 1 commit into
adamdburton:masterfrom
queeek180:master
Open

Fix "Tried to look up command thirdperson as if it were a variable."#303
queeek180 wants to merge 1 commit into
adamdburton:masterfrom
queeek180:master

Conversation

@queeek180

@queeek180 queeek180 commented Sep 25, 2025

Copy link
Copy Markdown

Change (GetConVar('thirdperson') and GetConVar('thirdperson'):GetInt() == 0) to not ply:ShouldDrawLocalPlayer()

This fixes console spam when in thirdperson. Although mostly an annoyance, it does appear to cause odd behavior with other addons(?)

I believe this should also fix an occasional playermodel lighting bug some people experience but have been unable to reproduce to test.

…spam

I believe this should also fix the playermodel rendering bug some people experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant