## XIII
Class Shells

source: C:\XIII\XIII\Classes\Shells.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Emitter
             |
             +--Engine.TriggerParticleEmitter
                |
                +--XIII.Shells

Direct Known Subclasses:LargeShells, SmallShells

class Shells
extends Engine.TriggerParticleEmitter

Function Summary
`bool` | `TriggerParticle()`
    //_____________________________________________________________________________

Source Code

    00001	class Shells extends TriggerParticleEmitter;
    00002
    00003	//_____________________________________________________________________________
    00004	function bool TriggerParticle()
    00005	{
    00006	    if ( (Level.Game != none) && (XIIIGameInfo(Level.Game).PlateForme == 1) ) // PS2
    00007	    {
    00008	      Emitters[0].UseCollision = false;
    00009	    }
    00010	    Emitters[0].RotationOffset = Owner.Rotation;
    00011	    Emitters[0].SpawnParticle(1);
    00012	    if ( bHidden )
    00013	    {
    00014	      bHidden = false;
    00015	      RefreshDisplaying();
    00016	    }
    00017	    SetTimer(2.0, false);
    00018	    return true;
    00019	//    Log("StartLocationOffset Emitter="$Emitters[0].StartLocationOffset);
    00020	}
    00021
    00022	//_____________________________________________________________________________
    00023	event Timer()
    00024	{
    00025	    bHidden = true;
    00026	    RefreshDisplaying();
    00027	}
    00028
    00029
    00030
    00031	defaultproperties
    00032	{
    00033	     Begin Object Class=MeshEmitter Name=ShellsA
    00034	         StaticMesh=StaticMesh'MeshArmesPickup.douille'
    00035	         Acceleration=(Z=-150.000000)
    00036	         UseCollision=True
    00037	         RespawnDeadParticles=False
    00038	         SpinParticles=True
    00039	         DampRotation=True
    00040	         AutomaticInitialSpawning=False
    00041	         Initialized=True
    00042	         DampingFactorRange=(X=(Min=0.700000,Max=0.700000),Y=(Min=0.700000,Max=0.700000),Z=(Min=0.700000,Max=0.700000))
    00043	         MaxParticles=40
    00044	         StartLocationOffset=(X=2.000000,Y=2.000000,Z=1.000000)
    00045	         UseRotationFrom=PTRS_Offset
    00046	         RotationOffset=(Roll=16384)
    00047	         SpinsPerSecondRange=(X=(Min=-1.000000,Max=4.000000),Y=(Min=-2.000000,Max=2.000000),Z=(Min=-1.000000,Max=1.000000))
    00048	         RotationDampingFactorRange=(X=(Min=0.700000,Max=0.700000),Y=(Min=0.700000,Max=0.700000),Z=(Min=0.700000,Max=0.700000))
    00049	         StartSizeRange=(X=(Min=0.500000,Max=0.500000),Y=(Min=0.500000,Max=0.500000),Z=(Min=0.500000,Max=0.500000))
    00050	         SecondsBeforeInactive=0.000000
    00051	         LifetimeRange=(Min=2.000000,Max=2.000000)
    00052	         StartVelocityRange=(X=(Min=-20.000000,Max=60.000000),Y=(Min=30.000000,Max=70.000000),Z=(Min=10.000000,Max=20.000000))
    00053	         Name="ShellsA"
    00054	     End Object
    00055	     Emitters(0)=MeshEmitter'XIII.Shells.ShellsA'
    00056	     AutoDestroy=False
    00057	     bTrailerSameRotation=True
    00058	     bIgnoreDynLight=False
    00059	     Physics=PHYS_Trailer
    00060	     RemoteRole=ROLE_None
    00061	     Mass=4.000000
    00062	}

End Source Code