## XIII
Class HandLiteProj

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

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

Direct Known Subclasses:None

class HandLiteProj
extends Engine.Projector

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

Variables
`vector` | `OldLocation`
`rotator` | `OldRotation`
`bool` | `bActive`

Function Summary
`void` | `Tick(float dT)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class HandLiteProj extends Projector;
    00005
    00006	var vector OldLocation;
    00007	var rotator OldRotation;
    00008	var bool bActive;
    00009
    00010	//_____________________________________________________________________________
    00011	function Tick(float dT)
    00012	{
    00013	    if ( !bActive )
    00014	    {
    00015	      DetachProjector(true);
    00016	      return;
    00017	    }
    00018	    if ( (OldLocation != Owner.Location+Pawn(Owner).EyePosition()-vect(0,0,30)) || (OldRotation != Pawn(Owner).controller.Rotation) )
    00019	    {
    00020	      DetachProjector(true);
    00021	      SetLocation(Owner.Location+Pawn(Owner).EyePosition()-vect(0,0,30));
    00022	      SetRotation(Pawn(Owner).controller.Rotation);
    00023	      AttachProjector();
    00024	      OldLocation = Owner.Location+Pawn(Owner).EyePosition()-vect(0,0,30);
    00025	      OldRotation = Pawn(Owner).controller.Rotation;
    00026	    }
    00027	}
    00028
    00029
    00030
    00031	defaultproperties
    00032	{
    00033	     ProjTexture=Texture'XIIICine.effets.eclairblanc'
    00034	     FOV=35
    00035	     MaxTraceDistance=2048
    00036	     bClipBSP=True
    00037	     bFade=True
    00038	     AttachPriority=3
    00039	     bBlockZeroExtentTraces=False
    00040	     bBlockNonZeroExtentTraces=False
    00041	}

End Source Code