RuneI
Class Horn

source: c:\runehov\RuneI\Classes\Horn.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Decoration
         |
         +--RuneI.DecorationRune
            |
            +--RuneI.Instrument
               |
               +--RuneI.Horn
Direct Known Subclasses:None

class Horn
extends RuneI.Instrument

//============================================================================= // Horn. //=============================================================================

Function Summary
 EMatterType MatterForJoint(int joint)
     
//============================================================
//
// MatterForJoint
//
// Returns what kind of material joint is associated with
//============================================================
 void PlayInstrument(Actor Musician)
     
//============================================================
//
// PlayInstrument
//
//============================================================



Source Code


00001	//=============================================================================
00002	// Horn.
00003	//=============================================================================
00004	class Horn expands Instrument;
00005	
00006	var(Sounds) Sound BlowHorn;
00007	
00008	
00009	//============================================================
00010	//
00011	// MatterForJoint
00012	//
00013	// Returns what kind of material joint is associated with
00014	//============================================================
00015	function EMatterType MatterForJoint(int joint)
00016	{
00017		return MATTER_METAL;
00018	}
00019	
00020	//============================================================
00021	//
00022	// PlayInstrument
00023	//
00024	//============================================================
00025	function PlayInstrument(actor Musician)
00026	{
00027		Super.PlayInstrument(Musician);
00028		PlaySound(BlowHorn, SLOT_Misc,,,, FRand()*0.5 + 0.8);
00029	}
00030	
00031	defaultproperties
00032	{
00033	     BlowHorn=Sound'MusicalSnd.ME.mehorns01'
00034	     bStatic=False
00035	     DrawType=DT_SkeletalMesh
00036	     CollisionRadius=100.000000
00037	     CollisionHeight=58.000000
00038	     bCollideActors=True
00039	     bCollideWorld=True
00040	     bBlockActors=True
00041	     bBlockPlayers=True
00042	     bJointsBlock=True
00043	     Skeletal=SkelModel'objects.Horn'
00044	}

End Source Code