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

WVPersesMAS.PersesMercuryExplosion


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
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
//=============================================================================
// MercuryExplosion
// Copyright 2003-2010 by Wormbo <wormbo@online.de>
//
// Emitter that creates an explosion effect with a smoke ring and small stuff
// flying around.
//=============================================================================


class PersesMercuryExplosion extends Emitter notplaceable;


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

#exec audio import file=Sounds\MercImpact.wav
#exec audio import file=Sounds\MercWaterImpact.wav


//=============================================================================
// Variables
//=============================================================================

var bool bWaterExplosion;


//=============================================================================
// Replication
//=============================================================================

replication
{
	reliable if (bNetInitial)
		bWaterExplosion;
}


//=============================================================================
// PostBeginPlay
//
// Handle low framerate conditions.
//=============================================================================

simulated event PostNetBeginPlay()
{
	local PlayerController PC;

	PC = Level.GetLocalPlayerController();
	if (Level.NetMode == NM_DedicatedServer || PC == None) {
		return;
	}
	if (!PC.BeyondViewDistance(Location, class'PersesMercuryExplosionLight'.default.CullDistance)) {
		Spawn(class'PersesMercuryExplosionLight');
	}

	if (Emitters.Length > 2) {
		if (Level.DetailMode == DM_Low || Level.DetailMode == DM_High && Level.bAggressiveLOD) {
			Emitters[2] = None;
		}
		else if (Emitters[2] != None && Level.bDropDetail) {
			Emitters[2].UseCollision = False;
			Emitters[2].LifetimeRange.Min = 1;
			Emitters[2].LifetimeRange.Max = 1.5;
		}
	}
}

auto simulated state Exploding
{
Begin:
	if (PhysicsVolume.bWaterVolume || bWaterExplosion)
		PlaySound(Sound'MercWaterImpact');
	else
		PlaySound(Sound'MercImpact');
}


//=============================================================================
// Default properties
//=============================================================================

defaultproperties
{
    Begin Object Class=SpriteEmitter Name=ExplosionRing
        UseColorScale=True
        RespawnDeadParticles=False
        SpinParticles=True
        UseSizeScale=True
        UseRegularSizeScale=False
        UniformSize=True
        AutomaticInitialSpawning=False
        UseRandomSubdivision=True
        ColorScale(0)=(Color=(B=128,G=255,R=255,A=255))
        ColorScale(1)=(RelativeTime=0.400000,Color=(B=64,G=192,R=255,A=96))
        ColorScale(2)=(RelativeTime=0.800000,Color=(G=96,R=255,A=16))
        ColorScale(3)=(RelativeTime=1.000000,Color=(R=255))
        CoordinateSystem=PTCS_Relative
        MaxParticles=50
        StartLocationShape=PTLS_Polar
        StartLocationPolarRange=(Y=(Max=65535.000000),Z=(Min=5.000000,Max=5.000000))
        UseRotationFrom=PTRS_Actor
        RotationOffset=(Yaw=16384,Roll=16384)
        StartSpinRange=(Z=(Max=1.000000))
        SizeScale(0)=(RelativeSize=0.700000)
        SizeScale(1)=(RelativeTime=0.400000,RelativeSize=1.000000)
        SizeScale(2)=(RelativeTime=0.600000,RelativeSize=0.800000)
        SizeScale(3)=(RelativeTime=1.000000,RelativeSize=0.700000)
        StartSizeRange=(X=(Min=20.000000,Max=25.000000),Y=(Min=20.000000,Max=25.000000),Z=(Min=20.000000,Max=25.000000))
        InitialParticlesPerSecond=1000.000000
        DrawStyle=PTDS_AlphaBlend
        Texture=Texture'MercuryExplosionSprites'
        TextureUSubdivisions=4
        TextureVSubdivisions=4
        SecondsBeforeInactive=0.000000
        LifetimeRange=(Min=0.300000,Max=0.500000)
        StartVelocityRadialRange=(Min=100.000000,Max=170.000000)
        VelocityLossRange=(X=(Min=1.500000,Max=2.500000),Y=(Min=1.500000,Max=2.500000),Z=(Min=1.500000,Max=2.500000))
        GetVelocityDirectionFrom=PTVD_AddRadial
    End Object
    Emitters(0)=SpriteEmitter'ExplosionRing'

    Begin Object Class=SpriteEmitter Name=ExplosionSmokeRing
        FadeOut=True
        FadeIn=True
        RespawnDeadParticles=False
        UseSizeScale=True
        UseRegularSizeScale=False
        UniformSize=True
        AutomaticInitialSpawning=False
        UseRandomSubdivision=True
        Opacity=0.500000
        FadeOutStartTime=0.200000
        FadeInEndTime=0.200000
        CoordinateSystem=PTCS_Relative
        MaxParticles=30
        StartLocationShape=PTLS_Polar
        StartLocationPolarRange=(Y=(Max=65535.000000),Z=(Min=20.000000,Max=20.000000))
        UseRotationFrom=PTRS_Actor
        RotationOffset=(Yaw=16384,Roll=16384)
        SizeScale(0)=(RelativeSize=0.300000)
        SizeScale(1)=(RelativeTime=0.200000,RelativeSize=0.700000)
        SizeScale(2)=(RelativeTime=1.000000,RelativeSize=1.000000)
        StartSizeRange=(X=(Min=25.000000,Max=25.000000),Y=(Min=25.000000,Max=25.000000),Z=(Min=25.000000,Max=25.000000))
        InitialParticlesPerSecond=1000.000000
        Texture=Texture'EmitterTextures.MultiFrame.smokelight_a'
        TextureUSubdivisions=4
        TextureVSubdivisions=4
        SecondsBeforeInactive=0.000000
        LifetimeRange=(Min=0.800000,Max=1.000000)
        StartVelocityRadialRange=(Min=60.000000,Max=60.000000)
        VelocityLossRange=(X=(Min=1.000000,Max=1.000000),Y=(Min=1.000000,Max=1.000000),Z=(Min=1.000000,Max=1.000000))
        GetVelocityDirectionFrom=PTVD_AddRadial
    End Object
    Emitters(1)=SpriteEmitter'ExplosionSmokeRing'

	AutoDestroy   = True
	bNoDelete     = False
	RemoteRole    = ROLE_None
	bNetTemporary = True
	LifeSpan      = 1.1
	TransientSoundVolume = 0.5
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 17.12.2013 23:03:14.000 - Creation time: Do 14.8.2014 09:58:48.344 - Created with UnCodeX