//=============================================================================
// TeamMover - A mover than triggers only if the team number of the actor
// trying to activate it is the same as Team.
//
// Supports the BumpOpenTimed, BumpButton, and StandOpenTimed states.
//
// Written by Adam W. Stiles - inspired by the KeyMover class posted at
//   Chimeric - http://www.planetunreal.com/chimeric
// Reuse permitted, distribution permitted as long as original documentation
//   remains intact.  
// This code MAY be used as a basis for other mods - please include a note
//   with a link to http://www.planetunreal.com/muad  so that people know
//   what code it was based on! :)
//=============================================================================

class TeamMover expands Mover;

USE:

Unzip all the zip contents into your UnrealTournament/System directory. Fire up UnrealEd.  In your Browser, choose Classes.  Click the "Load" button.  Select "TeamMover.u" that you just unzipped.  UnrealEd will chug and compile the class.  You can then find the TeamMover class under Brushes->Mover->TeamMover.

A TeamMover is created exactly the same way as a regular mover and has all the same basis attributes (movement sounds, etc).  The ONLY new parameter can be found under the TeamMover properties:

	TeamMover->Team

Team is either 0 (red) or 1 (blue).  A TeamMover will trigger only for a player on the SAME team as the TeamMover.  In addition, because there is already a TeamTrigger class built into UT, TeamMover supports only the following Object->InitialState settings:

	- BumpOpenTimed
	- BumpButton
	- StandOpenTimed

This allows mappers to use a TeamMover to easily create a team triggered door, switch, or elevator/lift without trying to simulate it with the TeamTrigger class.

If you create a map using a TeamMover, you'll need to include the TeamMover.u and TeamMover.txt files from this distribution along with your map.  These files will need to be in the UnrealTournament/System for the map to work.


DISTRIBUTION:

If you want to use this in a map, then have at! :)  Just be sure to include this file with your map distribution so others will know who wrote it, where else to get it, and how to use it if they want to. If you are a mod author and want to include this code in whole, or in part, in your modification, then that's ok too - I just ask that you email me letting me know that you plan to use it, and that you give me a tag line for credit somewhere in your mod distribution.  Thanks!

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