Skip to content

Scripted game_object shader/texture changing#157

Merged
themrdemonized merged 1 commit intothemrdemonized:all-in-one-vs2022-wpofrom
xr-lucy:lucy_stuff
Apr 11, 2025
Merged

Scripted game_object shader/texture changing#157
themrdemonized merged 1 commit intothemrdemonized:all-in-one-vs2022-wpofrom
xr-lucy:lucy_stuff

Conversation

@xr-lucy
Copy link
Contributor

@xr-lucy xr-lucy commented Apr 10, 2025

  • 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!

Thanks to @nltp-ashes and BAN for testing and feedback

- 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!
@themrdemonized themrdemonized merged commit d7e3729 into themrdemonized:all-in-one-vs2022-wpo Apr 11, 2025
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
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