41 lines
932 B
Ucode
41 lines
932 B
Ucode
class UT2341BioAttachment extends xWeaponAttachment;
|
|
|
|
var xEmitter MuzFlash3rd;
|
|
|
|
simulated function Destroyed()
|
|
{
|
|
if (MuzFlash3rd != None)
|
|
MuzFlash3rd.Destroy();
|
|
Super.Destroyed();
|
|
}
|
|
|
|
simulated event ThirdPersonEffects()
|
|
{
|
|
local Rotator R;
|
|
|
|
if ( Level.NetMode != NM_DedicatedServer && FlashCount > 0 )
|
|
{
|
|
if (MuzFlash3rd == None)
|
|
{
|
|
MuzFlash3rd = Spawn(class'XEffects.BioMuzFlash1st');
|
|
MuzFlash3rd.bHidden = false;
|
|
AttachToBone(MuzFlash3rd, 'tip');
|
|
}
|
|
if (MuzFlash3rd != None)
|
|
{
|
|
R.Roll = Rand(65536);
|
|
SetBoneRotation('Bone_Flesh', R, 0, 1.0); //Easy to see how this mistake was made, eh?
|
|
MuzFlash3rd.mStartParticles++;
|
|
}
|
|
}
|
|
|
|
Super.ThirdPersonEffects();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
bHeavy=True
|
|
Mesh=SkeletalMesh'UT2341Weapons_Anims.UTGESBioRifle3rd'
|
|
DrawScale=0.250000
|
|
}
|