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
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
{
     mParticleType=PT_Branch
     mRegen=False
     mStartParticles=30
     mMaxParticles=30
     mLifeRange(0)=0.500000
     mLifeRange(1)=0.500000
     mPosDev=(X=5.000000,Y=5.000000,Z=5.000000)
     mSpawnVecB=(X=40.000000,Y=40.000000,Z=10.000000)
     mSizeRange(0)=30.000000
     mSizeRange(1)=30.000000
     blockOnNet=True
     bReplicateInstigator=True
     bReplicateMovement=False
     bSkipActorPropertyReplication=True
     RemoteRole=ROLE_DumbProxy
     NetPriority=3.000000
     Skins(0)=Texture'XEffects.Skins.LightningBoltT'
     Style=STY_Additive
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: pr 5-2-2018 12:35:52.000 - Creation time: sk 18-3-2018 09:50:14.157 - Created with UnCodeX