Page 1 of 2

[SOLVED] Default character in game

Posted: September 7th, 2010, 3:41 am
by nEk0
How can I change my default character in this game from RoboChimp to other custom character I made automatically when the game is loaded? Sorry if this is a dumb question.. But I had to ask for the sake of my game. :lol:

Re: Default character in game

Posted: September 7th, 2010, 4:45 am
by owenisred
Ill be honest I have no idea always wondered how to do this lol

Re: Default character in game

Posted: September 7th, 2010, 8:22 am
by Runescapedj
there're really many questions of this yet, go search the forum (maybe you can find it in the wiki?), and than you have 2 change the model with the robochimp you start with, and delete everything under the 9-key to make sure you can't change into another model

Re: Default character in game

Posted: September 7th, 2010, 5:01 pm
by chocolatepie33
This is a very complicated question. There is a .cpp file that talks about this, but none of us understand C++ enough to decipher it.
Your only bet for now is to substitute your model for an RC or Ogre folder, like Rune said.

P.S. Here's the URL to the topic viewtopic.php?f=15&t=1203&start=0

Re: Default character in game

Posted: September 8th, 2010, 7:38 am
by nEk0
I know a little bit of C++.. I'm learning programming language like Python too.. Have you try editing this function?

Code: Select all

static const playermodelinfo playermodels[8] =
	{
		{ "rc", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc", "rc_blue", "rc_red", true, true }, 
		{ "rc/blue", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc_blue", "rc_blue", "rc_red", true, true }, 
		{ "rc/red", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc_red", "rc_blue", "rc_red", true, true }, 
		{ "rc/pink", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc_pink", "rc_blue", "rc_red", true, true }, 
		{ "ogre", "ogre/blue", "ogre/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "ogre", "ogre", "ogre", false, true }, 
		{ "ogre/blue", "ogre/blue", "ogre/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "ogre", "ogre", "ogre", false, true },
		{ "ogre/red", "ogre/blue", "ogre/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "ogre", "ogre", "ogre", false, true },
		{ "uh/chars/man", "uh/chars/man", "uh/chars/man", NULL, NULL, NULL, { NULL, NULL, NULL }, "uh/chars/man", "uh/chars/man", "uh/chars/man", false, true }
	};
Does it work? I'm not yet try it though.. :roll:

Re: Default character in game

Posted: September 8th, 2010, 6:12 pm
by chocolatepie33
I've tried editing it, it doesn't work. There may be multiple files to change.

Re: Default character in game

Posted: September 8th, 2010, 8:08 pm
by nEk0
Same here.. I've tried looking for more info inside the header file there, but no luck.. :?

Re: Default character in game

Posted: September 10th, 2010, 5:59 pm
by chocolatepie33
Maybe we can ask the original Sandbox creator guy, Oortman von what's-his-name...

Re: Default character in game

Posted: September 12th, 2010, 2:11 pm
by owenisred
I found something recently that really works, and I can't believe it hasn't been spotted before...

try /playermodel X

where X is a random number (I dont know how far it goes up to, as I have only tried the numbers 6 and 7 - 7 gives you the guy from moviecube I think, or maybe an ogro)

So if you want your own custom model as your character, simply replace the character of the ogro with your own animated md3 and type /playermodel 7 or whatever at the start of the .cfg of your gametype, i.e. If your in RPG mode, open the data/game_rpg.cfg file and type in /playermodel 7 at the top.

I'm fairly confident that that should work, I see no reason why it shouldn't

Hope I helpder,
Owen.

Re: Default character in game

Posted: September 12th, 2010, 3:46 pm
by chocolatepie33
Where'd you get this? Sauerbraten reference?