Jordash wrote:What do you mean "you people" :P
No ones saying you can simply set it in hammer, what we're saying is there is a way to code it so the mapper may select it from hammer. Rather than relying on a coder to change the code everytime a new model is added.
Mappers will probably find this way is much nicer for them
This is from the combine_s code I mentioned, it probably will need some fiddling to get it working with the zombie npc, but its something to get people started
in ::Precache() put
- Code: Select all
const char *pModelName = STRING( GetModelName() );
PrecacheModel( STRING( GetModelName() ) );
in the set model bit put
- Code: Select all
SetModel( STRING( GetModelName() ) );
maybe this as well to avoid issues
- Code: Select all
if( !GetModelName() )
{
SetModelName( MAKE_STRING( "models/zombie/classic.mdl" ) );
}
in the FDG
- Code: Select all
model(studio) : "Model"
or
- Code: Select all
model(choices) : "Model" : "models/zombie/classic.mdl" : "RegularZombie" =
[
"models/zombie/classic.mdl" : "RegularZombie"
"models/zombie/classic_2.mdl" : "DifferentZombie"
]
Useless comment is useless. If you think that your shit would be better than mine then write a new tutorial. Фуууууууу.