Skip to content

Remove most of the unnecessary NW networking + replace the remaining with NW2#15

Open
Astralcircle wants to merge 7 commits into
robotboy655:masterfrom
Astralcircle:master
Open

Remove most of the unnecessary NW networking + replace the remaining with NW2#15
Astralcircle wants to merge 7 commits into
robotboy655:masterfrom
Astralcircle:master

Conversation

@Astralcircle

@Astralcircle Astralcircle commented May 21, 2026

Copy link
Copy Markdown
Contributor

Most of these values ​​are already networked, and those that do require network transmission now use NW2
The Think hook has also been replaced with a timer

Please don't forget to update the workshop addon if you merge this

@robotboy655 robotboy655 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you actually tested this?
I don't think func_door* variants network their locked state, only the prop_ ones do.
And I am dubious about the HasRadar function working.

There's no need to swap NWVars to NW2Vars.

@Astralcircle

Astralcircle commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

I've been using this on my server for about two weeks now and haven't had any issues. I haven't tested it with func_door, but it should probably work?

Radar checking on jalopy works like this:
When a radar is installed on jalopy, a vgui_screen entity is created and parented to them. So checking whether vgui_screen is parented to jalopy should be the most reliable method

Also, why not replace NW1 with NW2? We only need these values ​​in PVS

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.

2 participants