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

U2.LG_ParticleDamage


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
//=============================================================================
// $Author: Mbaldwin $
// $Date: 10/31/02 7:59p $
// $Revision: 4 $
//=============================================================================

//------------------------------------------------------------------------------
// Name:	LG_ParticleDamage.uc
// Author:	Aaron R Leiby
// Date:	17 August 2002
//------------------------------------------------------------------------------
// Description:	
//------------------------------------------------------------------------------
// How to use this class: 
//------------------------------------------------------------------------------

class LG_ParticleDamage extends ParticleDamage;

var string SpawnClassString;

//-----------------------------------------------------------------------------
event NotifyPenetratingActor( Actor Other, int NumParticles, vector Origin )
{
	local int i;
	local class<Actor> SpawnClass;

	if( Other.IsA('SpiderBaby') )
		{ Other.CallFunction('Fertilize'); return; }
	if( !SpawnClass )	// extra hacky due to package interdependencies -- I'd much rather leave this in U2Weapons, but package dependencies won't let me.
		SpawnClass = class<Actor>(DynamicLoadObject( SpawnClassString, class'Class' ));
	for( i=0;i<NumParticles;i++ )
		Spawn( SpawnClass,,, Origin );
}

defaultproperties
{
	SpawnClassString="U2Weapons.projectileLeech"
	Radius=8.000000
	bUseTrace=true
	bDeleteOnContact=true
	Priority=8.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: sk 3-1-2016 10:38:42.000 - Creation time: sk 3-1-2016 10:48:40.288 - Created with UnCodeX