Scripted game_object shader/texture changing#157
Merged
themrdemonized merged 1 commit intothemrdemonized:all-in-one-vs2022-wpofrom Apr 11, 2025
Merged
Scripted game_object shader/texture changing#157themrdemonized merged 1 commit intothemrdemonized:all-in-one-vs2022-wpofrom
themrdemonized merged 1 commit intothemrdemonized:all-in-one-vs2022-wpofrom
Conversation
- Scripts can now read and change the shaders/textures of models (and all their submeshes) - It's now possible to disable shadows for a submesh by appending `$no_shadows` to its shader name (in the ogf or using the scripted way that was added in this commit) Necessary changes for all of this to work: - Removed model pool that reassigned unused models to newly spawned objects - Removed player hud item pool, every item has its own attachable_hud_item now - Some changes to prevent crashes due to the removed pools - Added support for flags to meshes and turned ignore_optimization and the newly added no_shadows into flags - hud_adjust.remove_hud_model now actually works as a result of this!
d7e3729
into
themrdemonized:all-in-one-vs2022-wpo
9 of 10 checks passed
themrdemonized
added a commit
that referenced
this pull request
Apr 11, 2025
Scripted game_object shader/texture changing (cherry picked from commit d7e3729)
themrdemonized
added a commit
that referenced
this pull request
Apr 15, 2025
This reverts commit 349ccc8.
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.
$no_shadowsto its shader name (in the ogf or using the scripted way that was added in this commit)Necessary changes for all of this to work:
Thanks to @nltp-ashes and BAN for testing and feedback