Set player's model without cs_set_user_model
I've been trying to set the player's model to a model in the /models/ folder with EV_SZ_model and entity_set_model to no avail, it instantly switches it back to whatever player model the player was using. I've tried it in PreThink, PostThink, and both at the same time.
I would use cs_set_user_model except that I need a global-mod function, and while technically cs_set_user_model should work on any mod it's in the cstrike module, and I also need it to be any model, not in the defined models/player/modelname/modelname.mdl. Any ideas? Thanks. |
hmmm
Perhaps try fakemeta? engfunc(EngFunc_SetModel, id, model[]);
Also I thought you could also do it with set_user_info(id, "model", model[]); |
FakeMeta's SetModel is the same as entity_set_model. The set_user_info method wouldn't do anything in mods like Counter-Strike that don't allow you to choose your own model, and would still require that the model be in /models/player/modelname/modelname.mdl
|
Yeah, I have this problem too.
If someone would tell how to solve it, it would be appriciated ^^ |
You could make a single native plugin which hacks the model info and sets its info. I have no clue how to do this, its just a idea ^^
If anyone gets this covered please explain me too ^^ |
Code:
Try that. |
To get it working with FM you'd need to completely block ClientUserInfoChanged when model changing is occuring and also set SET_CLIENT_KEYVALUE in PlayerPostThink.
Its how it works in VexdUM, think CStrike module using pvdata offsets? |
| All times are GMT -4. The time now is 14:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.