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

XWeapons.NewLightningBolt


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
class NewLightningBolt extends xEmitter;

simulated function PostBeginPlay()
{
    Super.PostBeginPlay();
    MakeNoise(0.5);
	PlaySound(Sound'WeaponSounds.LightningGun.LightningGunImpact', SLOT_Misc,,,,,false);
}

simulated function PostNetBeginPlay()
{
	local xWeaponAttachment Attachment;
	local vector X,Y,Z;
	
    if ( (xPawn(Instigator) != None) && !Instigator.IsFirstPerson() )
    {
        Attachment = xPawn(Instigator).WeaponAttachment;
        if ( (Attachment != None) && (Level.TimeSeconds - Attachment.LastRenderTime < 0.1) )
        {
			GetAxes(Attachment.Rotation,X,Y,Z);
            SetLocation(Attachment.Location -40*X -10*Z);
        }
    }
}


defaultproperties
{
	mStartParticles=30
	mMaxParticles=30
	mLifeRange(0)=0.500000
	mLifeRange(1)=0.500000
	mSizeRange(0)=30.000000
	mSizeRange(1)=30.000000
	mPosDev=(X=5.000000,Y=5.000000,Z=5.000000)
	mParticleType=PT_Branch
	mRegen=false
	Skins(0)=Texture'LightningBoltT'
	Style=STY_Additive
    mAtLeastOneFrame=true

    Physics=PHYS_None
    bUnlit=True
    bGameRelevant=true
    CollisionRadius=+0.00000
    CollisionHeight=+0.00000

    mSpawnVecB=(X=40.0,Y=40.0,Z=10.0)

    RemoteRole=ROLE_DumbProxy
	bNetTemporary=true
    blockOnNet=true
    bReplicateMovement=false
    bSkipActorPropertyReplication=true
    bReplicateInstigator=true
	NetPriority=3
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:36:30.000 - Creation time: Do 14.8.2014 09:58:45.569 - Created with UnCodeX