Page 1 of 1

CoD4 setting player model

Posted: January 29th, 2014, 6:05 pm
by Gomerdeath
Hey so ive been workign on a mod and in the quickmessage menu i have it set so that you can change your player model to custom player models. Every model if tried using ive gotten the error: dobj for xmodel 'playermodel_BotS_50cent
' has more than 128 bones. ive tried it with 4 models and got the same error. Im not sure what im doign wrong i precache the models in init()

Code: Select all

	precacheModel("playermodel_BotS_50cent");
        	precacheModel("viewhands_BotS_50cent");	
and in the function for the menu button i have

Code: Select all

model2()
{
	self setModel("playermodel_BotS_50cent");
	self setViewmodel("viewhands_BotS_50cent");
}
and then i get the error when pressing the button. If anyone could tell me what im doing wrong itd be great :) thanks

Re: CoD4 setting player model

Posted: March 9th, 2014, 12:37 pm
by BurntToast
try

Code: Select all

model2()
{
   self detachAll();
   self setModel( "playermodel_BotS_50cent" );
   self setViewmodel( "viewhands_BotS_50cent" );
}