Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

OnslaughtSpecialsLiteV2.ONSSwitchedSidesEventRedirector


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
/******************************************************************************
ONSSwitchedSidesEventRedirector

Creation date: 2010-08-22 15:41
Last change: $Id$
Copyright (c) 2010, Wormbo
******************************************************************************/

class ONSSwitchedSidesEventRedirector extends Triggers;


//=============================================================================
// Imports
//=============================================================================

#exec texture import file=Textures\S_SideSwitchRedirect.bmp masked=1


//=============================================================================
// Properties
//=============================================================================

/** Event to trigger instead of Event if sides are switched. */
var(Events) name SwitchedSidesEvent;


function bool SidesAreSwitched()
{
	return ONSOnslaughtGame(Level.Game) != None && ONSOnslaughtGame(Level.Game).bSidesAreSwitched;
}

function Trigger(Actor Origin, Pawn Causer)
{
	if (SidesAreSwitched())
		TriggerEvent(SwitchedSidesEvent, Origin, Causer);
	else
		TriggerEvent(Event, Origin, Causer);
}


function UnTrigger(Actor Origin, Pawn Causer)
{
	if (SidesAreSwitched())
		UnTriggerEvent(SwitchedSidesEvent, Origin, Causer);
	else
		UnTriggerEvent(Event, Origin, Causer);
}


//=============================================================================
// Default values
//=============================================================================

defaultproperties
{
	bCollideActors = False
	Texture = S_SideSwitchRedirect
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: So 22.8.2010 16:06:40.000 - Creation time: Do 14.8.2014 09:58:47.552 - Created with UnCodeX