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

U2Weapons.WeaponInvMagicPistol


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
//=============================================================================
// WeaponInvMagicPistol.uc
// $Author: Mbaldwin $
// $Date: 12/10/02 8:16p $
// $Revision: 5 $
//=============================================================================
class WeaponInvMagicPistol extends WeaponInvPistol;

// Special subclass used only in final cutscene.

function GiveTo( pawn Other, optional bool bDontTryToSwitch )	//PostBeginPlay is too soon -- Tag gets set in execSpawn.  :(
{
	Super.GiveTo(Other, bDontTryToSwitch);
	Tag='MagicPistol';
}

simulated function NotifyPlaySoundSlot( string Slot )
{
	if(Slot!="Fire")
		Super.NotifyPlaySoundSlot(Slot);
}

simulated function MeshAgentCallActionEx( name Sequence )
{
	if(Sequence!='Magic')
		Super.MeshAgentCallActionEx(Sequence);
}

simulated function SetFireSkin(){}
function TraceFire( float TraceSpread ){}

simulated function Trigger( Actor Other, Pawn EventInstigator, optional name EventName )
{
	Super.NotifyPlaySoundSlot("Fire");
	ParticleTrigger("Magic");
	PlayAnimEx('Magic');
	Super.SetFireSkin();
}

defaultproperties
{
     GunButtSounds(0)=Sound'U2WeaponsA.GunButt.GunButt01'
     GunButtSounds(1)=Sound'U2WeaponsA.GunButt.GunButt02'
     GunButtSounds(2)=Sound'U2WeaponsA.GunButt.GunButt03'
     GunButtSounds(3)=Sound'U2WeaponsA.GunButt.GunButt04'
     DecoEffects(0)=(AnimSequence=Magic,DecoClass=Class'U2Weapons.P_LightEffect',MountNode="#Muzzleflash",MountOffset=(X=15.000000,Z=15.000000),bTriggerUpdateOnly=true)
     TargetableTypes(0)='Pawn'
	ThirdPersonMesh=LegendMesh'GlmWeaponsG.P_TP_Magic'
     UseReticleOnEvents(0)="UseReticleText"
     UseReticleOnEvents(1)="UseReticleCorners"
     UseReticleOnEvents(2)="UseReticleTopBars"
     ProximityReticleOnEvents(0)="ProximityReticleCorners"
     ProximityReticleOnEvents(1)="ProximityReticleTopBars"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: sk 3-1-2016 10:38:42.000 - Creation time: sk 3-1-2016 10:48:43.922 - Created with UnCodeX