AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   models downloading but not showing ? (https://forums.alliedmods.net/showthread.php?t=25015)

SaintK 03-06-2006 05:49

models downloading but not showing ?
 
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....

karlos 03-06-2006 06:30

add a debug and make sure your function is called

Werewolf 03-06-2006 06:45

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>

SaintK 03-06-2006 07:02

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 :(

Werewolf 03-06-2006 07:10

A friend on same server said it didnt work?

SaintK 03-06-2006 07:16

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

Xanimos 03-06-2006 07:36

if your using a player model it needs to be in
models/<Model>/<Model>.mdl

Werewolf 03-06-2006 07:54

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?

Janet Jackson 03-06-2006 08:06

Code:

models/player/strike-a/strike-a.mdl


All times are GMT -4. The time now is 20:22.

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