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

U2Pawns.ProtoBlob


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
00080
00081
00082
00083
00084
00085
00086
00087
//=============================================================================
// U2Spore.
//=============================================================================

class ProtoBlob extends U2PawnBase;

var() name AnimationName;
var() float AnimRate;
var() rotator MinAmbientRotationRate, MaxAmbientRotationRate;

//-----------------------------------------------------------------------------

event PreBeginPlay()
{
	local rotator NewRotation;

	Super.PreBeginPlay();

	// randomize rotation
	NewRotation.Pitch	= RandRange( 0, 65535 );
	NewRotation.Yaw		= RandRange( 0, 65535 );
	NewRotation.Roll	= RandRange( 0, 65535 );
	SetRotation( NewRotation );

	//!!mdf-tbi: support setting up rotation in a random plane for more realism
	// randomize rotation rate
	if( MaxAmbientRotationRate.Pitch > 0 )
		AmbientRotationRate.Pitch = RandRange( MinAmbientRotationRate.Pitch, MaxAmbientRotationRate.Pitch );
	if( MaxAmbientRotationRate.Yaw > 0 )
		AmbientRotationRate.Yaw = RandRange( MinAmbientRotationRate.Yaw, MaxAmbientRotationRate.Yaw );
	if( MaxAmbientRotationRate.Roll > 0 )
		AmbientRotationRate.Roll = RandRange( MinAmbientRotationRate.Roll, MaxAmbientRotationRate.Roll );
}

//-----------------------------------------------------------------------------

function Trigger( Actor Other, Pawn EventInstigator, optional name EventName )
{
	PlayAnim( AnimationName, AnimRate );
}

//-----------------------------------------------------------------------------

defaultproperties
{
	AnimationName='Ripple'
	AnimRate=1.000000
	AlertOthersRadius=0.000000
	bLookForAlertFriends=false
	bWanderCanTeleportIfStuck=false
	bWanderLookAtDestination=false
	WanderAvoidPawnDiffDistance=-30.000000
	WanderPauseOdds=0.250000
	WanderSpeedMin=0.100000
	WanderSpeedMax=0.100000
	WanderSpreadAngle=120.000000
	AnimationControllerClass=None
	bCanPanic=false
	bOverridesDamageEffect=true
	bCanFly=true
	bAmbientCreature=false
	SightRadius=0.000000
	MaxStepHeight=0.000000
	WaterSpeed=150.000000
	AirSpeed=250.000000
	BaseEyeHeight=0.000000
	UnderWaterTime=-1.000000
	TeamNumber=67
	bActorShadows=false
	Tag='ProtoBlob'
	Mesh=LegendMesh'GlmDecorationsG.FX_protoblob'
	DrawScale=0.500000
	PrePivot=(Z=2.000000)
	SoundRadius=300.000000
	TransientSoundRadius=300.000000
	CollisionRadius=16.000000
	CollisionHeight=16.000000
	bNoStaticMeshCollide=true
	Mass=5.000000
	Buoyancy=5.000000
     UseReticleOnEvents(0)="UseReticleText"
     UseReticleOnEvents(1)="UseReticleCorners"
     UseReticleOnEvents(2)="UseReticleSideBars"
     ProximityReticleOnEvents(0)="ProximityReticleCorners"
     ProximityReticleOnEvents(1)="ProximityReticleSideBars"
}

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