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.

Custom Monsters

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.
Locked
User avatar
DrChef
Member
Member
Posts: 60
Joined: February 19th, 2010, 5:30 pm
Name: Luis

Custom Monsters

Post by DrChef »

Question:
Which files do I have to edit to add a custom creature to sandbox?
I've looked inside monster.cpp in the src/fpsgame folder, but can't make my model appear at all,
if this is the correct file, how would i edit this?
:D
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Custom Monsters

Post by Hirato »

depends on the module - monster.cpp is the right one for the FPS module

you'd add your own monster into the array and increase NUMMONSTERS by 1

in SSP and the RPG, there are several examples in the configuration files
This is not a url, clicking it is pointless
User avatar
DrChef
Member
Member
Posts: 60
Joined: February 19th, 2010, 5:30 pm
Name: Luis

Re: Custom Monsters

Post by DrChef »

would I simply have to add my character into the following bit of code, or is it more intense editing? : D

Code: Select all

        { GUN_FIST,  4, 100, 3, 0,   100, 800, 50, 0,  5, S_PAINO, S_DIE1,   "A Butterfly",     "butterfly",       "butterfly"}, 
        { GUN_BITE,  20, 800, 5, 0,   400, 1600, 100, 60,  4000, S_PAINO, S_DIE1,   "A Dragon",     "rpg/characters/dragon",       "Dragon"}, 
        { GUN_FIST,  8, 800, 5, 0,   400, 1600, 100, 16,  4000, S_PAINO, S_DIE1,   "A Golem",     "rpg/characters/golem",       "golem"}, 
        { GUN_FIST,  12, 200, 5, 0,   400, 1600, 100, 16,  800, S_PAINO, S_DIE1,   "A Grizzly",     "rpg/characters/grizzly",       "grizzly"}, 
        { GUN_BITE,  25, 50, 5, 0,   400, 1600, 100, 2,  30, S_PAINO, S_DIE1,   "A Rat",     "rpg/characters/rat",       "rat"}, 
        { GUN_FIST,  7, 150, 5, 0,   400, 1600, 100, 16,  200, S_PAINO, S_DIE1,   "A Snagon",     "rpg/characters/snagon",       "snagon"}, 
        { GUN_BITE,  28, 80, 5, 0,   400, 1600, 100, 6,  150, S_PAINO, S_DIE1,   "A Wolf",     "rpg/characters/wolf",       "wolf"}, 
:D
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Custom Monsters

Post by Hirato »

basically - don't forget to increase NUMMONSTERTYPES or whatever it's called
This is not a url, clicking it is pointless
Locked