Raised This Month: $ Target: $400
 0% 

models downloading but not showing ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-06-2006 , 05:49   models downloading but not showing ?
Reply With Quote #1

Hi need a little direction to a model problem, the models download correctly from the server but dont show up in game.

Code:
public plugin_precache()     {     // Precache models     precache_model("models/steamsucks/STRIKE-A.mdl")     precache_model("models/steamsucks/Urban.mdl")     return PLUGIN_CONTINUE } public plugin_init(){ ...     register_event("ResetHUD", "resetModel", "be") } public resetModel(id) {     new usermodel[33]     cs_get_user_model(id, usermodel, 32)         if(cs_get_user_team(id) == CS_TEAM_CT)         {         client_print( id, print_chat, "The humans are a virus eradicate them !" )           set_user_armor(id,250)         set_user_health(id,175)         set_user_maxspeed(id,Float:300)         entity_set_model (id,"models/steamsucks/STRIKE-A.mdl") //cs_set_user_model(id, "Urban")         } ... return PLUGIN_CONTINUE         }//end function

is there any reason why the model will not show in game i have also tried cs_set_user_model as well to no avail,


regards....
SaintK is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 03-06-2006 , 06:30  
Reply With Quote #2

add a debug and make sure your function is called
__________________
alias White Panther
karlos is offline
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 03-06-2006 , 06:45  
Reply With Quote #3

If it is a weaponmodel seen from client v_*model
Code:
entity_set_string(id, EV_SZ_viewmodel, "MODEL HERE")
if it is a player model p_*model
Code:
entity_set_string(id, EV_SZ_model, "MODEL HERE")
weaponmodel seen from other clients w_*model
Code:
entity_set_string(id, EV_SZ_weaponmodel, "MODEL HERE")
And engine have to be active
Code:
#include <engine>
Werewolf is offline
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-06-2006 , 07:02  
Reply With Quote #4

Quote:
Originally Posted by Werewolf
If it is a weaponmodel seen from client v_*model
Code:
entity_set_string(id, EV_SZ_viewmodel, "MODEL HERE")
if it is a player model p_*model
Code:
entity_set_string(id, EV_SZ_model, "MODEL HERE")
weaponmodel seen from other clients w_*model
Code:
entity_set_string(id, EV_SZ_weaponmodel, "MODEL HERE")
And engine have to be active
Code:
#include <engine>
have all those things and tried

entity_set_string(id, EV_SZ_model, "models/steamsucks/STRIKE-A.mdl")

still no go models are the default ones when you choose them
SaintK is offline
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 03-06-2006 , 07:10  
Reply With Quote #5

A friend on same server said it didnt work?
Werewolf is offline
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-06-2006 , 07:16  
Reply With Quote #6

Quote:
Originally Posted by Werewolf
A friend on same server said it didnt work?
i have 2 machines and i logged both machines in if i create an entity myself and give it the model it works just dont seem to allow me to do it on a real player, bot i also made sure that
Code:
public client_connect(id){             client_cmd(id, "cl_minmodels 0") }
was set just in case
SaintK is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-06-2006 , 07:36  
Reply With Quote #7

if your using a player model it needs to be in
models/<Model>/<Model>.mdl
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 03-06-2006 , 07:54  
Reply With Quote #8

Quote:
Originally Posted by Suicid3
if your using a player model it needs to be in
models/<Model>/<Model>.mdl
You mean models/player/*.mdl
Like that?
Werewolf is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-06-2006 , 08:06  
Reply With Quote #9

Code:
models/player/strike-a/strike-a.mdl
__________________
Janet Jackson 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 20:22.


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