Raised This Month: $ Target: $400
 0% 

Set player's model without cs_set_user_model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-30-2005 , 18:16   Set player's model without cs_set_user_model
Reply With Quote #1

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 08-30-2005 , 19:14   hmmm
Reply With Quote #2

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

Also I thought you could also do it with set_user_info(id, "model", model[]);
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-30-2005 , 19:28  
Reply With Quote #3

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
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 08-31-2005 , 07:09  
Reply With Quote #4

Yeah, I have this problem too.
If someone would tell how to solve it, it would be appriciated ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
LynX
Veteran Member
Join Date: Oct 2004
Old 08-31-2005 , 20:19  
Reply With Quote #5

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 ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
LynX
Veteran Member
Join Date: Oct 2004
Old 09-02-2005 , 10:01  
Reply With Quote #6

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

Try that.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
T(+)rget
Senior Member
Join Date: Mar 2004
Old 09-02-2005 , 20:04  
Reply With Quote #7

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?
T(+)rget is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode