Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

3D Models Animation Preset

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
User avatar
jSoftApps
Member
Member
Posts: 426
Joined: May 2nd, 2011, 10:02 pm
Name: J.R.
IRC Username: jSoftApps
Location: jSoft Apps Software Innovations HQ
Contact:

Re: 3D Models Animation Preset

Post by jSoftApps »

chocolatepie33 wrote:not to interrupt you guys (sorry justanother1), just mentioning that like jsoft said, the playermodel list is in the render.cpp file. Now, to expand on what he said, the specific list is creating via a C++ array, meaning we can add as many player models as we want. An array is a series of values of any data type. They're pretty easy to use, as long as you understand what goes in the array. This is the specific code for the playermodel array:

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 }
    };
for some more stuff on arrays: http://www.cplusplus.com/doc/tutorial/arrays/
personally, it'd be better if the playermodel list was a vector array, which could be expanded/reduced as needed. But alas, I believe that would likely require recompiling anyways. http://www.cplusplus.com/reference/stl/vector/
Good job CP!
I recommend Code::Blocks for the compiler (because Hirato broke the vcpp files (he really needs to fix them) :evil: )
jSoft Apps Software Innovations - App, Games and More!
Visit our Website!

Image

jSoft Apps is now on indie db!
Image
Locked