Raised This Month: $ Target: $400
 0% 

models problem :\ i think its easy help..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-02-2005 , 19:13   models problem :\ i think its easy help..
Reply With Quote #1

i made a plugin that changes the player model into something else
but it forces me to put the model in a special directory.

example:
if i want to use the model:
"warrior.mdl"
it doesnt matter where i put it.. it will always search it at:
"models\player\warrior\warrior.mdl"

if i want 4 models:
"warrior1.mdl"
"warrior2.mdl"
"warrior3.mdl"
"warrior4.mdl"

it will look for them at:
"models\player\warrior1\warrior1.mdl"
"models\player\warrior2\warrior2.mdl"
"models\player\warrior3\warrior3.mdl"
"models\player\warrior4\warrior4.mdl"

my point is.. that i want all 4 models to be in the SAME directory. how i do that?

NOTE:
its NOT a precache thing.. i precached them in other directories.
when i try to USE them.. the game always search them at
models\player\[name]\[name].mdl

i used the command:
cs_set_user_model(id,name)
haimmaik is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-02-2005 , 19:32  
Reply With Quote #2

You can't set it to something outside of player, without forcing it in the engine or fakemeta level.

It wouldn't show correctly though, if you forced a monster / weapon (or whatever) model on a player.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-02-2005 , 20:07  
Reply With Quote #3

its ok with me that all of them will be inside player...
but i want at least 1 folder to contain all of them 2grther

models\player\XXXXX\warrior1\warrior1.mdl
models\player\XXXXX\warrior2\warrior2.mdl
models\player\XXXXX\warrior3\warrior3.mdl
models\player\XXXXX\warrior4\warrior4.mdl

see?? all of them in 1 directory ("XXXXX")
haimmaik is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-02-2005 , 20:14  
Reply With Quote #4

put your folder under models/player ... volia
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-02-2005 , 20:21  
Reply With Quote #5

I don't think you can do it like that.

You can always use engine to set their model.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-02-2005 , 20:26  
Reply With Quote #6

hay Zenith ur here O_O why dont u log into the MSN?
haimmaik is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-02-2005 , 20:29  
Reply With Quote #7

mmm about to get off anyway, a friend is coming over....



but you can do this....


Code:
public plugin_precache() { precache_model("models/player/myfolder/mymodel.mdl") } public myFunc(id) { cs_set_user_model(id, "mymodel.mdl") }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-02-2005 , 20:31  
Reply With Quote #8

ok ill try...
btw, i solved the trail problem
haimmaik is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-02-2005 , 22:51  
Reply With Quote #9

Quote:
Originally Posted by Hawk552
You can always use engine to set their model.
That won't work with players.

Quote:
Originally Posted by Zenith77
Code:
cs_set_user_model(id, "mymodel.mdl")
It should be mymodel, not mymodel.mdl


As per the original question, if you intend to use cs_set_user_model, you have to follow the directory structure it uses.
__________________
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 11-03-2005 , 05:27  
Reply With Quote #10

Code:
entity_set_string(id, EV_SZ_model, "modelpath")

Code:
entity_set_model(id, "modelpath")

You can do these 2 ways.

I was asking PM about this matter before, he said both of ways work.
__________________
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
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 23:44.


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