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

JBToolbox.JBEmitter1stPersonFlames


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
// ============================================================================
// JBEmitter1stPersonFlames
// Copyright 2007 by Jrubzjeknf <rrvanolst@hotmail.com>
// $Id: JBEmitter1stPersonFlames.uc,v 1.1 2007-09-09 18:14:45 jrubzjeknf Exp $
//
// An emitter that sets a player on fire in first person.
// ============================================================================

class JBEmitter1stPersonFlames extends Emitter;


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

#exec obj load file=..\Textures\EmitterTextures.utx
#exec obj load file=..\Sounds\GeneralAmbience.uax


// ============================================================================
// TornOff
//
// Destroy the emitter as soon as the player dies.
// ============================================================================

simulated function TornOff()
{
  Destroy();
}


// ============================================================================
// Tick
//
// Update the emitter's location and rotation.
// ============================================================================

simulated function Tick(float DeltaTime)
{
  local Controller C;

  if (Pawn(Owner) != None && Pawn(Owner).Controller != None) {
    C = Pawn(Owner).Controller;

    SetLocation(Owner.Location + Pawn(Owner).EyePosition() + Vector(C.Rotation)*20);
    SetRotation(Owner.Rotation);

    // Show only in first person.
    if (PlayerController(C) != None &&
        Emitters[0].Disabled != PlayerController(C).bBehindView)
      Emitters[0].Disabled = PlayerController(C).bBehindView;
  }
}


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

defaultproperties
{
  Begin Object Class=SpriteEmitter Name=PlayerFlames
    FadeOut=True
    FadeIn=True
    SpinParticles=True
    UseSizeScale=True
    UseRegularSizeScale=False
    UniformSize=True
    UseRandomSubdivision=True
    AddVelocityFromOwner=True
    Acceleration=(Z=20.000000)
    Opacity=0.500000
    FadeOutStartTime=0.200000
    FadeInEndTime=0.200000
    MaxParticles=25
    StartLocationShape=PTLS_Sphere
    SphereRadiusRange=(Min=8.00000,Max=16.000000)
    StartSpinRange=(X=(Min=0.375000,Max=0.375000))
    SizeScale(0)=(RelativeSize=0.300000)
    SizeScale(1)=(RelativeTime=0.700000,RelativeSize=2.000000)
    SizeScale(2)=(RelativeTime=1.000000,RelativeSize=3.000000)
    StartSizeRange=(X=(Min=10.000000,Max=15.000000),Y=(Min=10.000000,Max=15.000000),Z=(Min=10.000000,Max=15.000000))
    Texture=Texture'EmitterTextures.MultiFrame.LargeFlames'
    TextureUSubdivisions=4
    TextureVSubdivisions=4
    SecondsBeforeInactive=0.000000
    LifetimeRange=(Min=0.500000,Max=0.500000)
    StartVelocityRange=(Z=(Min=10.000000,Max=20.000000))
    VelocityLossRange=(X=(Min=5.000000,Max=5.000000),Y=(Min=5.000000,Max=5.000000),Z=(Min=5.000000,Max=5.000000))
    CoordinateSystem=PTCS_Relative
  End Object
  Emitters(0)=SpriteEmitter'PlayerFlames'

  bNoDelete   = False
  bHardAttach = True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: So 9.9.2007 20:14:46.000 - Creation time: Do 14.8.2014 09:58:42.039 - Created with UnCodeX