//=============================================================================
// SelectiveSkyZoneInfo - A ZoneInfo that is bound to a skyzoneinfo with a 
// 			matching tag.  This allows for multiple skyzoneinfos,
//			and multiple (different) skies in a single map.
//=============================================================================

class SelectiveSkyZoneInfo expands ZoneInfo;

USE:

Unzip the SelectiveSkyZoneInfo.u file into your UnrealTournament\System directory.  Unzip the sample map (if you wish) into your UnrealTournament\Maps directory.  In UnrealEd, open up the Classes browser, goto File->Open and select SelectiveSkyZoneInfo.u - it will show up under ZoneInfo->SelectiveSkyZoneInfo.

A SelectiveSkyZoneInfo acts just like a regular ZoneInfo and then some.  Put one into a zoned off area in your map.  Create a skybox and put a SkyZoneInfo into it.  Give the SkyZoneInfo an Events->Tag (can be anything you want).  Give the SelectiveSkyZoneInfo  the same tag under SelectiveSkyZoneInfo->SelectedSky.  Compile your map and any surfaces marked in that zone as "FakeBackdrop" will use that sky and that sky only.  You can then create other skyboxes, give them different tags, and give other rooms in your maps different skies.

This allows mappers to create some different effects in their maps.  For example, a player can now teleport from a day scene into a night scene, in the same map, each scene with a different sky.

First off - I take really no credit for this code.  Practically all but two lines of it is Epic's original ZoneInfo code.  All that needed to be added was one variable and an "if" statement... that's it.  I can't reasonably take credit for that :)

Second off - I know this has had to have been done somewhere before and I distinctly remember someone going by the handle of "SlasherIV" (hope it was that - he knows who he is) doing this although I didn't have the chance to check out his code and I'll be darned if I can locate it on the net now... So since I've wanted a script like this for a while I just wrote my own... darn it... :)

- Muad'dib (Adam W. Stiles)
- muad@planetunreal.com
- http://www.planetunreal.com/muad