Skip to content

Make CLight a server-only entity#1885

Open
RaphaelIT7 wants to merge 1 commit intoValveSoftware:masterfrom
RaphaelIT7:patch-3
Open

Make CLight a server-only entity#1885
RaphaelIT7 wants to merge 1 commit intoValveSoftware:masterfrom
RaphaelIT7:patch-3

Conversation

@RaphaelIT7
Copy link
Copy Markdown

Description

This makes CLight (the light, light_spot, light_glspot) be server-only saving some edicts.
This works because it uses IVEngineServer::LightStyle to change the lights, and it itself doesn't network anything at all so this can easily save edicts while not breaking anything :)
I've proposed this change in GMod a while ago in Facepunch/garrysmod-requests#3104 though especially in source games with lower edict limits, this will probably be useful to save some.
(NOTE: I couldn't test the change since the engine keeps crashing, but since it has been fine in GMod I don't really expect any issues)

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