AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set player's model without cs_set_user_model (https://forums.alliedmods.net/showthread.php?t=17381)

XxAvalanchexX 08-30-2005 18:16

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.

knekter 08-30-2005 19:14

hmmm
 
Perhaps try fakemeta? engfunc(EngFunc_SetModel, id, model[]);

Also I thought you could also do it with set_user_info(id, "model", model[]);

XxAvalanchexX 08-30-2005 19:28

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

LynX 08-31-2005 07:09

Yeah, I have this problem too.
If someone would tell how to solve it, it would be appriciated ^^

LynX 08-31-2005 20:19

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 ^^

LynX 09-02-2005 10:01

Code:
set_pev(id, pev_model, "modelpath")

Try that.

T(+)rget 09-02-2005 20:04

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.