Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NetworkVar show their name for cl_showerror #1416

Open
meepen opened this issue Sep 25, 2019 · 2 comments
Open

Make NetworkVar show their name for cl_showerror #1416

meepen opened this issue Sep 25, 2019 · 2 comments

Comments

@meepen
Copy link

meepen commented Sep 25, 2019

I know NW2 variables can do this.

@robotboy655
Copy link
Contributor

robotboy655 commented Sep 25, 2019

NetworkVars (https://wiki.garrysmod.com/page/Entity/NetworkVar) are defined entirely in Lua so this would be quite difficult to do without redoing the whole system in C++.

@Kefta
Copy link

Kefta commented Sep 25, 2019

Couldn't you just implement a simple idx->string array on the C++ side for the sole purpose of console print? You can send in the string from Lua when NetworkVar gets called, and have some dummy internal function like ent:SetDTName(idx, name). Maybe there's a better solution.

@meepen meepen changed the title Make NetworkVar show their name in cl_showerror Make NetworkVar show their name for cl_showerror Sep 25, 2019
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

No branches or pull requests

3 participants