fix(component): send a script component only when the client makes one

The client makes a script component for a registry script with a non-zero
id, or for a custom script in the config it is sent (LOT 176 never):
ApplyScriptComponentIfHasScript and LWOScriptComponent's allocator. A
character's script and a server-only custom_script_server stay on the
server and send nothing. The 5 LOTs whose registry script id is 0 (e.g. the
AG concert fan, LOT 3002: live sent no config and no script) lose the bit
the client never read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 16:38:56 -05:00
parent c69b26b661
commit 432f4f6ff9
3 changed files with 18 additions and 0 deletions

View File

@@ -353,6 +353,9 @@ public:
*/
std::string GetVarAsString(const std::u16string& name) const;
// Whether the construction sends this level config key to the client (a model's settings, or syncLDF)
bool IsVarSentToClient(const std::u16string& name) const;
/*
* Collision
*/