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

ParticleSystems.BreakableGlass


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
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
//=============================================================================
// $Author: Aleiby $
// $Date: 2/25/02 8:19p $
// $Revision: 4 $
//=============================================================================

//------------------------------------------------------------------------------
// Name:	BreakableGlass.uc
// Author:	Aaron R Leiby
// Date:	20 June 2000
//------------------------------------------------------------------------------
// Description:	
//------------------------------------------------------------------------------
// How to use this class:
//------------------------------------------------------------------------------

class BreakableGlass extends ParticleGenerator
	native;

#exec OBJ LOAD FILE=Textures\U2Particles.utx PACKAGE=ParticleSystems

var() int   MaxDepth;	// don't ever make this larger than 7!!
var() float NearDistSquared[7];
var() float StasisTimeFactor;
var() float MaxStasisTime;
var() float TriangulateProb;
var() float MinBreakSizeSq;

// Previously static variables in ABreakableGlass.cpp
var() float Radius;
var TriangleParticleTemplate TriTemp;
var PointParticleTemplate PointTemp;
var GlassMover s_Mover;
var Coords Coords;


public native event Init( GlassMover M );
/*!!arl(particlesystems)
public native simulated function CollisionNotify( TriangleParticle P, vector HitLocation, vector HitNormal );
*/

function DefineDependants()
{
	local class Dependant;
	Dependant = class'ParticleSystems.TriangleParticleTemplate';
	Dependant = class'ParticleSystems.PointParticleTemplate';
	Dependant = class'ParticleSystems.PerParticleGravity';
	Dependant = class'ParticleSystems.GeometryCollider';
	Dependant = class'ParticleSystems.GlassCollider';
	Dependant = class'ParticleSystems.FadeOutForce';
}

defaultproperties
{
	MaxDepth=7
	NearDistSquared(0)=256.000000
	NearDistSquared(1)=1024.000000
	NearDistSquared(2)=4096.000000
	NearDistSquared(3)=16384.000000
	NearDistSquared(4)=65536.000000
	NearDistSquared(5)=262144.000000
	NearDistSquared(6)=1048576.000000
	StasisTimeFactor=0.009000
	MaxStasisTime=1.300000
	TriangulateProb=0.500000
	MinBreakSizeSq=144.000000
	Radius=10.000000
     DefaultForces(0)=Class'ParticleSystems.DecayForce'
     DefaultForces(1)=Class'ParticleSystems.LocatorForce'
	LifeSpan=999999.000000
	Texture=Texture'ParticleSystems.Glass.GlassShard'
	bMustFace=false
     UseReticleOnEvents(0)="UseReticleText"
     UseReticleOnEvents(1)="UseReticleCorners"
     UseReticleOnEvents(2)="UseReticleTopBars"
     ProximityReticleOnEvents(0)="ProximityReticleCorners"
     ProximityReticleOnEvents(1)="ProximityReticleTopBars"
}

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