## XIII
Class BloodFlow

source: C:\XIII\XIII\Classes\BloodFlow.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Projector
             |
             +--XIII.BloodFlow

Direct Known Subclasses:None

class BloodFlow
extends Engine.Projector

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`float` | `fDist`

States
Flowing

Function Summary
`bool` | `GrowBloodFlow(float dT)`

State Flowing Function Summary
`void` | `Tick(float dT)`
`void` | `BeginState()`

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class BloodFlow extends Projector
    00005	                    native;
    00006
    00007	var float fDist;
    00008
    00009	native(604) static final function bool GrowBloodFlow(float dT);
    00010
    00011	//_____________________________________________________________________________
    00012	auto state Flowing
    00013	{
    00014	    function BeginState()
    00015	    {
    00016	      local rotator R;
    00017
    00018	      R = rotation;
    00019	      R.Roll = randrange(0, 32767);
    00020	      SetRotation(R);
    00021	      if ( Level.bLonePlayer && Level.Game.bAlternateMode )
    00022	        ProjTexture=Material'XIIICine.bloodspotA_2_alpha';
    00023	    }
    00024	    function Tick(float dT)
    00025	    {
    00026	      /*
    00027	      fDist += dT*2;
    00028	      DetachProjector(true);
    00029	      Move( - dT*2 * vector(rotation) );
    00030	      AttachProjector();
    00031	      if ( fDist > 32 )
    00032	      {
    00033	//        AbandonProjector(15.0);
    00034	        GotoState('');
    00035	      }
    00036	      */
    00037	      if (GrowBloodFlow(dT))
    00038	      {
    00039	        GotoState('');
    00040	      }
    00041	    }
    00042	}
    00043
    00044	//    ProjTexture=Material'XIIICine.RoundShadowA_alpha'
    00045
    00046	defaultproperties
    00047	{
    00048	     ProjTexture=FinalBlend'XIIICine.effets.BloodspotA_alpha'
    00049	     FOV=5
    00050	     MaxTraceDistance=16
    00051	     bProjectActor=False
    00052	     bClipBSP=True
    00053	     AttachPriority=3
    00054	     bBlockZeroExtentTraces=False
    00055	     bBlockNonZeroExtentTraces=False
    00056	     DrawScale=0.050000
    00057	}

End Source Code