GoldSrc Map Texture Tutorial

Part4: ANIMATED Textures

1) Animated textures run in a loop of 10fps between a maximum of 10 textures by using a "+0" through "+9" filename designation. They can also be toggled with an off state designated with a "+A" which will be covered in part 5. All animated textures MUST have the exact filename consistency. Also you cannot have any other numbers in the filename or else the engine will cease to recognize it as animated.

2) Prepare your animated frames. Because converting each frame to indexed palette and renaming each is very time consuming, I will be showing a method of processing using photoshops export layers to files and IRFANVIEW batch processor. If you haven't already create layers from files to flatten any changes you have made to your timeline. This makes layers named "frame1,2,3, ect ect". Save a copy of your work and then delete all layers that are not named frame so you wont be exporting any unnecessary images.

3) Go to file>scripts then export layers to files.

4) Save as BMP and leave it at 24bit (we will be turning turn them into 8bit later outside of photoshop).

5) Open one of your images in IRFANVIEW and then go to batch conversion/rename.

6) First set to Batch conversion - Rename result files, then go to Add all to get all your frames, then sort files by name (descending order), then go to the advanced tab after setting the output format to BMP.

7) In advanced tab click change color depth and set to 256colors. Use dithering if necessary.

NOTE: While it is possible to use the additional processing features to the right, you may have to use those options and process them separately in a batch before you change color depth due to irfanview doing the 256colors reduction BEFORE the effect filters, thus it saves the image as 24bit which may cause problems with wally.

8)Finally go to Batch rename settings option and set the name pattern to "+#barn" (the hash number symbol is the incrementing number field). Then set the starting counter to 0 because the image starts at 0.

9)Process the images and when IRFANVIEW is done, go to the directory you saved in and Drag and drop into your WAD. Save out & add to hammer as usual.

10)Unlike additive or masked textures, animated can work on any worldbrush. Add your first texture "+0barn" to a brush, compile the map and observe:

Part0: Introduction

Part1: Creating Basic Textures

Part2: Creating Masked Transparent Textures

Part3: Creating Additive Transparent Textures

Part5: Creating Toggled Textures

Part6: Creating Water Textures

Part7: Creating Scrolling Textures

Part8: Creating Skies

Part9: Creating Detail Textures

Part10: Batch Conversion

Return to Tutorials