Make CLight a server-only entity#1885
Open
RaphaelIT7 wants to merge 1 commit intoValveSoftware:masterfrom
Open
Make CLight a server-only entity#1885RaphaelIT7 wants to merge 1 commit intoValveSoftware:masterfrom
RaphaelIT7 wants to merge 1 commit intoValveSoftware:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This makes
CLight(thelight,light_spot,light_glspot) be server-only saving some edicts.This works because it uses
IVEngineServer::LightStyleto 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)