Ok lets do this one step at a time . In the main directory you have pk3 files . One of those files is called pak0.pk3 . Open that with winzip or winrar .
When you have that open go to the scripts directory .
look for a file called trees.shader
Extract that file to your harddrive
What .tik file are you remakeing purple ?
in pak0.pk3 models directory find the static directory open that directory
find the natural directory open that directory .
now find the tik for the tree you are makeing purple
Extract the tik to your harddrive .
Ok now open the tik in notepad and find the line that reads " surface blah blah shader ??????? "
The ??????? is the shader you are looking for .
Open the trees.shader in a new notepad window
find the ??????? in the trees.shader it will look something like this
Code: Select all
static_pine_branches
{
qer_editorimage textures/models/natural/pinebranchs.tga
cull none
{
clampmap textures/models/natural/pinebranchs.tga
depthWrite
alphafunc GE128
rgbgen vertex
}
}
copy the ???????? shader to a new notepad window
give your shader a shader name and put the name of your tga where the old tga was
Code: Select all
static_purple_branches
{
qer_editorimage textures/models/natural/purple.tga
cull none
{
clampmap textures/models/natural/purple.tga
depthWrite
alphafunc GE128
rgbgen vertex
}
}
make sure the path to your tga is right such as
textures/models/natural/purple.tga
find the line that reads " surface blah blah shader ??????? " in the tik that you opened earlier and put your shader name where the ????????? is . At the bottom of the tik put this
/*QUAKED static_natural_tree_purpletree(0.5 0.0 0.5) (-16 -16 -32) (16 16 480)
*/
Ok now save the tik as purple_tree.tik and put it in the models directory on your harddrive . Save the shader file as purple.shader and put that in the scripts directory on your harddrive . make sure the path to your tga is right such as textures/models/natural/purple.tga and that is what you had put in the shader .
Ok you are done open mohradiant and look for your tree on the right click menu .