[CS:S] how to change player model pose/animation?
Posted: Sun Nov 27, 2022 6:37 pm
Hi everyone,
I am currently looking more deeply into changing stuff on Counter-Strike:Source including the ability to change the hostages model. Normally you find a lot of models online but they all have a default pose where one does hold a weapon. I know there should be multiple animations a player model does have so I wonder if it is possible to change the pose to match a hostage better?
I have looked into sourcemod stuff but do not quite understand them to have a solution for Source.Python. There are parameters like m_flPoseParameter which should be able to control a model and move it (see alliedmods.net) so there is maybe something to change the model arms position.
One workaround I also thought of was to give a hostage a weapon (like a knife) and change it to something else like flowers. Would look weird but still better than empty hands in a weapon pose. Unfortunately a hostage entity is not a player model so I cannot give a weapon to a hostage.
Another workaround would be to change the mdl file and set another default pose for a given player model. But I have no clue on how to achieve that. I do not want to mess with the original mdl file but rather upload a second one with the changes applied.
Any help or ideas are highly welcomed :)
Kind Regards,
Kalle
I am currently looking more deeply into changing stuff on Counter-Strike:Source including the ability to change the hostages model. Normally you find a lot of models online but they all have a default pose where one does hold a weapon. I know there should be multiple animations a player model does have so I wonder if it is possible to change the pose to match a hostage better?
I have looked into sourcemod stuff but do not quite understand them to have a solution for Source.Python. There are parameters like m_flPoseParameter which should be able to control a model and move it (see alliedmods.net) so there is maybe something to change the model arms position.
One workaround I also thought of was to give a hostage a weapon (like a knife) and change it to something else like flowers. Would look weird but still better than empty hands in a weapon pose. Unfortunately a hostage entity is not a player model so I cannot give a weapon to a hostage.
Another workaround would be to change the mdl file and set another default pose for a given player model. But I have no clue on how to achieve that. I do not want to mess with the original mdl file but rather upload a second one with the changes applied.
Any help or ideas are highly welcomed :)
Kind Regards,
Kalle