Page 2 of 2

Re: Adding a playermodel to the list?

Posted: May 19th, 2010, 4:34 am
by Leo_V117
That looks like the correct file. When youre in 3rd person mode press 9 and it changes your player model to one of those above.

The line here:

Code: Select all

static const playermodelinfo playermodels[8] =
Must be the amount of player models for the game. I Think I should set it to 1. so it looks more like this:

Code: Select all

static const playermodelinfo playermodels[1] =
This part is the list of models:

Code: Select all

{ "rc", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc", "rc_blue", "rc_red", true, true }, 
So I should set them to something like this:

Code: Select all

{ "regen/characters/main", NULL, NULL, NULL, { NULL, NULL, NULL }, "regen/characters/main", true, true }, 
Then remove the rest... For campaign the playermodel is set to the main character. but for multiplayer modes the main character is none existent, The player goes into the settings menu and selects Multiplayer, they then get options such as Nickname, Model, Armor, Colour etc.

Seems like you found it for us chocolatepie33. I'll test it out later.

Re: Adding a playermodel to the list?

Posted: May 19th, 2010, 10:54 am
by arcones
Well the files make's sense, but the AI won't work until the next release at the earliest. There's still work to be done :|

Re: Adding a playermodel to the list?

Posted: September 7th, 2010, 5:03 pm
by chocolatepie33
Guys, I now know a bit of C++ and can say one thing: the static const playermodelinfo playermodels[8] = is an array, which is a type of data to store multiple variables. That may make the number of playermodels work.

Re: Adding a playermodel to the list?

Posted: September 12th, 2010, 5:13 pm
by Kerberos
chocolatepie33 wrote:Sorry I'm late, happy birthday Gr1m. I was browsing through the older posts in the sandbox chat area, and one of mike's posts said to look in the src/fpsgame/render.cpp file or something like that. I've got it up now, look at this:

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 }
};

I'm just staring at this and going, "WHAT THE????"

EDIT: There's also a monster.cpp file in there, plus an AI file, i think... Yeah... Still Lost... :( :?:

( NOTE I HAVE NO CLASS TRAINING IN THIS AND I AM JUST TAKING A STAB AT IT )

static const playermodelinfo playermodels[8] ~ Means number of models allowed change the 8 to something like 9999 for a limit of 9999 models ( 0% prove )

"rc", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc", "rc_blue", "rc_red", true, true },
~ looks like first, second and 3rd "" are the location of models or something the null i have no idea what its for but the 2nd list of the same name must be the name of the model or something and the true true is for something the program to trigger maybe swimming and jumping ? ~