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

WVPersesMAS.PersesTrailFLightEffects


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
/**
WVPersesMAS.PersesTrailFLightEffects

Creation date: 2013-12-14 08:47
Last change: $Id$
Copyright (c) 2013, Wormbo
*/

class PersesTrailFLightEffects extends PersesRocketFlightEffects abstract;


/**
Make sure the trail emitter really reaches the explosion location and fade out
the thruster flame, then kill the emitter.
*/
function Kill()
{
	if (MeshEmitter(Emitters[0]) != None)
		Emitters[0].Disabled = True;
	AmbientSound = None;
	TrailEmitter(Emitters[1]).DistanceThreshold = 1;
	GotoState('Killed');
}

/**
Make sure the trailer no longer moves while it dies. Wait a tick first, so
TrailEmitter can reach the explosion location.
*/
state Killed
{
Begin:
	Sleep(0.0);
	SetPhysics(PHYS_None);
	SetBase(None);
	SetOwner(None);
	Sleep(0.0);
	Super.Kill();
}


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

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sa 14.12.2013 09:49:16.000 - Creation time: Do 14.8.2014 09:58:48.486 - Created with UnCodeX