New items for level developers.

ET Pro Documentation Project

Moderators: Forum moderators, developers, ET Pro Documentation

Post Reply
User avatar
WeblionX
Posts: 762
Joined: Sun Sep 08, 2002 1:03 pm
Contact:

New items for level developers.

Post by WeblionX »

ETPro has implemented a slight freedom for map developers. You can specify alternate media to use without overwriting the default file.

For example, you can change the campaign map that normally shows during a load, which has the pins placed on them. To use a custom image, it must be a power of two and square. The default image is a TGA at 1024x1024 pixels, though mappers may want to use a smaller image when keeping in mind their PK3 size.

To use a different loading image, you have to create a shader with a texture name of "<b>etpro/<i>{mapname}</i>/gfx/loading/camp_map</b>" where <i>{mapname}</i> is the file name of your map. (NOT the extended name).

Example shader for a custom campaign map:

Code: Select all

etpro/mapname/gfx/loading/camp_map
&#123;
	nomipmaps
	nocompress
	&#123;
		clampmap gfx/loading/mapname_camp_map.tga
		blendfunc blend
		alphaGen vertex
	&#125;
&#125;
The pin images work in a similar way. The pins are what are shown in campaign mode when someone is loading a level. If the Axis have won one of the previous levels, it shows the pin_axis graphic, and if the Allied team has won the previous level, then the pin_allied gets loaded.

Code: Select all

etpro/mapname/gfx/loading/pin_axis
&#123;
	nomipmaps
	nopicmip
	nocompress
	&#123;
		clampmap gfx/loading/pin_axis_mapname.tga
		blendfunc blend
		alphaGen vertex
	&#125;
&#125;
etpro/mapname/gfx/loading/pin_allied
&#123;
	nomipmaps
	nopicmip
	nocompress
	&#123;
		clampmap gfx/loading/pin_allied_mapname.tga
		blendfunc blend
		alphaGen vertex
	&#125;
&#125;
<div>
<b>Links</b>
<hr><li><a href="http://mobilephonestyle.co.uk/load_changed.png">Example custom load images</a>
<li><a href="http://www.gimp.org">GIMP</a> - GNU Image Manipulation Program
<li><a href="http://www.qeradiant.com">GTK/SD Radiant</a> - Standard level editing tool for Q3E-based games.
<hr>
</div>
User avatar
Rookie One
Posts: 28
Joined: Wed Nov 02, 2005 4:58 am
Location: Ruda Slaska, Poland
Contact:

Post by Rookie One »

Transferred to WolfWiki.
Post Reply