View Single Post
Re: monstermaker tweak
Old
  (#4)
desNotes
Member
 
Status: Offline
Posts: 12
Join Date: Jan 2004
Default Re: monstermaker tweak - 07-04-2004

Quote:
Originally Posted by botman
The model of the entity should be set in the Spawn() function for that entity.

Monstermaker is just a 'helper' entity that spawns other entities. It spawns the particular type of entity based on the Monstermaker 'monstertype' key...

http://collective.valve-erc.com/inde...t=monstermaker

What 'monstertype' are you using when you spawn your custom monster? Perhaps you should create a 'generic' monster that doesn't specify the model in the Spawn() function, let Monstermaker spawn the generic monster, then set that generic monster's model based on the new key you added to Monstermaker.

botman
What I did was to incorporate a feature from Spirit of Half Life and make it so when the classname is called, a model other than the default can be called. For an example, I will use Barney. When monster_barney is called, there is an option to specify the model. I actually do this running Stripper2 and Metamod (after making some changes to Metamod).

So when CBarney :: Spawn() is called the model is checked in pev->model and if it is not there it gets the default. I did the same thing in monstermaker (I thought). I pull the model from the modified monstermaker format but when monstermaker calls CBarney :: Precache() I lose the pev->model. I am not up to speed on the namespaces and am wondering if I am just not calling the correct 'saved' variable in monstermaker while in monster_barney.

Thanks,

desNotes
  
Reply With Quote