Skip to content

Fixed an animation error when setting a model to Player.#435

Merged
jordanbriere merged 2 commits into
Source-Python-Dev-Team:masterfrom
CookStar:new_set_model
Nov 17, 2021
Merged

Fixed an animation error when setting a model to Player.#435
jordanbriere merged 2 commits into
Source-Python-Dev-Team:masterfrom
CookStar:new_set_model

Conversation

@CookStar

Copy link
Copy Markdown
Contributor

I'm not sure if this only applies to CS:GO, but certain models seem to have problems with animation when the model is attached to player by model_index. It might be related to CCSGOPlayerAnimState::Reset(void) or something like that.

If the model is set by entity.model_index, the problem remains, but I can't decide what to do. Is it better to leave it as it is, as entity.model_name can't set the model?

Offsets other than Garry's Mod were borrowed from SourceMod, thanks to AlliedModders/SourceMod.

@CookStar CookStar changed the title Fixed an animation error when setting a model to Entity. Fixed an animation error when setting a model to Player. Nov 11, 2021
Comment thread addons/source-python/packages/source-python/entities/_base.py Outdated
@jordanbriere jordanbriere merged commit 87d32cb into Source-Python-Dev-Team:master Nov 17, 2021
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