Page 1 of 1

Custom Monsters

Posted: April 7th, 2010, 6:50 pm
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?

Re: Custom Monsters

Posted: April 9th, 2010, 2:12 am
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

Re: Custom Monsters

Posted: April 9th, 2010, 2:51 am
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"}, 

Re: Custom Monsters

Posted: April 9th, 2010, 4:59 am
by Hirato
basically - don't forget to increase NUMMONSTERTYPES or whatever it's called