add ons

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

add ons

Post by tuffstuff7 »

boy i am full of questions tonight
ok here's another
how and where is there a tut on adding say a picture to your map or lets say u create a tombstone and u want ot put your clan members name there.................?! :roll:
Balr14
Colonel
Posts: 450
Joined: Sat Aug 03, 2002 4:01 am
Location: Germantown, WI, USA

Post by Balr14 »

If you want to add it to the map, you need to create a custom texture. That is a tga or jpg image, in increments of 16 (height and width). You put it in a pk3 file in a folder named "textures/yourname" (where yourname is whatever name you choose) and include this folder in the pk3 file with your map. If you want to give the texture transparency or surface properties, you have to create a shader, which goes in the pk3 file in a folder named scripts.

Look at some maps with custom textures to see how everything works.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

the easiest way for your 1st custom texture is to find an existing texture which is quiet fitting and make it a custom texture, e.g. algiers/grvstm1

You'll find the texture in pak2.pk3 in textures/algiers/grvstm1.jpg and the shader for it is in pak0.pk3, scripts/algiers.shader. Find the grvstm1 part in it and copy this into a new txt-file and change the red parts:

textures/clantex/clanstone
{
qer_keyword m1
qer_keyword stone
qer_keyword special
surfaceparm stone
{

map textures/clantex/clanstone.tga // this is weird: the texture is a jpg, but it's called tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

Save this txt-file as clantex.shader in a folder mohaa/main/textures
Put the grvstm1.jpg into a folder mohaa/main/textures/clantex, alter what you want and rename it to clanstone.jpg

Open Mohradiant and you should find a new texture folder called clantex containing your texture clanstone
Don't forget to add these two files to your pk3 for sharing the map
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

Post by tuffstuff7 »

wacko bless ya ! you earn the right to have your reply pirnted out and saved lol ty
Gizzy (nl)
Sergeant Major
Posts: 101
Joined: Tue Dec 03, 2002 3:41 pm
Location: Netherlands
Contact:

Post by Gizzy (nl) »

Wacko wrote:Save this txt-file as clantex.shader in a folder mohaa/main/textures
the shader file must be in the mohaa/main/scripts folder.... 8)
greets, Gizzy (nl)

Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

:oops:
Post Reply