home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Gameplay / Classes / AnimNotify_FireWeapon.uc < prev    next >
Text File  |  2003-12-11  |  392b  |  11 lines

  1. class AnimNotify_FireWeapon extends AnimNotify_Scripted;
  2.  
  3. event Notify( Actor Owner )
  4. {
  5.     // fake fire - play weapon effect, but no real shot
  6.     Pawn(Owner).bIgnorePlayFiring = true;
  7.     WeaponAttachment(Pawn(Owner).Weapon.ThirdPersonActor).ThirdPersonEffects();
  8.     if ( Pawn(Owner).Weapon.FireSound != None )
  9.         Pawn(Owner).Weapon.PlaySound(Pawn(Owner).Weapon.FireSound, SLOT_None, 1.0);
  10. }
  11.