Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bone manipulations on players with certain models causes its shadow to malform #6152

Open
littlebabyman opened this issue Jan 19, 2025 · 0 comments

Comments

@littlebabyman
Copy link

littlebabyman commented Jan 19, 2025

Details

Upon a player getting marked with bone manipulations, some models cause the player's shadow to degrade in quality (relative to where the player's shadow was last created, i.e. spawning, changing model, or approaching the player close enough) including any vehicle the player is riding.
All of these models include any number of "INVALIDBONE" entries when trying to return a bone's name on the client. Using lua_run_cl for i=0, Entity(1):GetBoneCount()-1 do print(Entity(1):GetBoneName(i)) end will show these. On server with lua_run they will show up all valid and with names.
Base game player models affected by this issue include CS:S players, DoD:S players, all Combine and metrocop models, corpse, charple, skeleton, and fast zombie.

Garry.s.Mod.-.2025-01-19.3-52-04.mp4
Garry.s.Mod.-.2025-01-19.13-05-48.mp4

To test; different shadow angles, directions, and distance possibly causing performance degradation. Could just be distance from the position player model was applied.
Freespace Islands seems to be heavily affected depending on view direction in third person.

Steps to reproduce

  1. Start up gm_flatgrass, pick any of the affected models, and go to any direction for a bit. Go thirdperson on foot or in a vehicle. Shadow will be just fine.
  2. To verify they have invalid bones on the client, run lua_run_cl for i=0, Entity(1):GetBoneCount()-1 do print(Entity(1):GetBoneName(i)) end in the console.
  3. Running lua_run_cl Entity(1):ManipulateBonePosition(0, Vector(0,0,0)) should proper mangle those shadows.
@littlebabyman littlebabyman changed the title Bone manipulations on local player with some models causes its shadow to malform Bone manipulations on players with certain models causes its shadow to malform Jan 19, 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

No branches or pull requests

1 participant