View Full Version : UTIL_SetModel Not Precached
Wanted Mod
06-12-2007, 11:03 PM
Howdiez, I have a problem with new characters that we have for our mod but get the UTIL_SetModel Not Precached. Where are all characters normally precached?
softboysxp
06-12-2007, 11:35 PM
Normally, in Spawn() or Precache()
Wanted Mod
06-12-2007, 11:53 PM
Normally, in Spawn() or Precache()
K, problem was solved...some help from Lodle as well. Basicly, bad paths in hl2mp_player.cpp
sharkwouter
11-21-2010, 07:09 AM
Having the same problem, but I really don't get this.
audryzas
11-21-2010, 07:16 AM
It's a 3 year old thread. :eek:
PrecacheModel ( "path_to_model.mdl" );
sharkwouter
11-21-2010, 07:42 AM
I know it's old, but I still got the problem. I appreciate the line of code you send me but where do I place it?
Biohazard_90
11-21-2010, 08:08 AM
In the Precache() function of your serverside player entity. If you're creating a template mod it would be sdk_player.cpp for example. You can also place it in player.cpp, which contains the baseclass, though.
sharkwouter
11-21-2010, 08:12 AM
I found it and it works, thank you guys for your help.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.