KICK wrote:OK I understand how create my base entity and i put it on nexuiz_ents.def. But my model doesn't have any texture and I don't know how link th etexture to the model. Please help me.
The name of the texure is part of the model itself. So you have to set the texture in whatever 3D modeler you are using (sorry, can't help you with that, i'm not a 3D artist

). If you set the texture to "mytex.jpg" for example, you have to copy the file to Nexuiz/data/textures/mytex.jpg.
And if you want to place a new entity on you map, you need to have a function in your qc code with the same name as the new entity's classname.
For example, when you have a entity
- Code: Select all
{
"classname" "base_team1"
"origin" "23 42 0"
}
you'll need a function like that
- Code: Select all
void base_team1()
{
setorigin(self, self.origin);
setmodel(self, "models/base_team1.md3");
// more things that should be done with this entity on mapstart
}
With the nexuiz_ents.def however i can't help you (i'm not a mapper

), but it seems like you already have solved that problem.