banimod / etpro / ettv forums Forum Index banimod / etpro / ettv forums
Bani's Discussion Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New items for level developers.

 
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation
View previous topic :: View next topic  
Author Message
WeblionX



Joined: 08 Sep 2002
Posts: 1163
Location: Tseaby

PostPosted: Wed Apr 14, 2004 3:47 pm    Post subject: New items for level developers. Reply with quote

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 "etpro/{mapname}/gfx/loading/camp_map" where {mapname} is the file name of your map. (NOT the extended name).

Example shader for a custom campaign map:
Code:

etpro/mapname/gfx/loading/camp_map
{
   nomipmaps
   nocompress
   {
      clampmap gfx/loading/mapname_camp_map.tga
      blendfunc blend
      alphaGen vertex
   }
}


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:

etpro/mapname/gfx/loading/pin_axis
{
   nomipmaps
   nopicmip
   nocompress
   {
      clampmap gfx/loading/pin_axis_mapname.tga
      blendfunc blend
      alphaGen vertex
   }
}
etpro/mapname/gfx/loading/pin_allied
{
   nomipmaps
   nopicmip
   nocompress
   {
      clampmap gfx/loading/pin_allied_mapname.tga
      blendfunc blend
      alphaGen vertex
   }
}



Links

  • Example custom load images
  • GIMP - GNU Image Manipulation Program
  • GTK/SD Radiant - Standard level editing tool for Q3E-based games.


  • Back to top
    View user's profile Send private message Visit poster's website
    Rookie One



    Joined: 02 Nov 2005
    Posts: 28
    Location: Ruda Slaska, Poland

    PostPosted: Sun Nov 13, 2005 8:57 am    Post subject: Reply with quote

    Transferred to WolfWiki.
    _________________
    Allied Field Ops I'm a field op! Axis Field Ops

    My crappy website
    My even crappier DeviantArt profile
    My even more crappier (how is this possible?) dmusic profile
    Back to top
    View user's profile Send private message Visit poster's website
    Display posts from previous:   
    Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation All times are GMT - 8 Hours
    Page 1 of 1

     
    Jump to:  
    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum


    Powered by phpBB © 2001, 2005 phpBB Group