Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
class ViewTestPlayerController extends xPlayer config(ViewTest); var Actor A; // The player view is determined by this function. function event PlayerCalcView(out actor ViewActor, out vector CameraLocation, out rotator CameraRotation ) { // USAR if ( (ViewTarget == None) || ViewTarget.bDeleteMe ) { if ( (Pawn != None) && !Pawn.bDeleteMe ) SetViewTarget(Pawn); else SetViewTarget(self); } ViewActor = ViewTarget; // Set the output variable ViewActor with the new view target CameraLocation = ViewTarget.Location; // Set the output variable CameraLocation with the view targets location CameraLocation += vect(0,0,50); // Comment out next two lines for 2 DOF spectator //CameraRotation.Yaw = ViewTarget.Rotation.Yaw; //CameraRotation.Roll = ViewTarget.Rotation.Roll; // END USAR // UTSAF /*bBehindView = false; Super.PlayerCalcView(ViewActor, CameraLocation, CameraRotation);*/ // END UTSAF /*CameraLocation.X = ViewTarget.Location.X; CameraLocation.Y = ViewTarget.Location.Y; CameraLocation.Z = ViewTarget.Location.Z+30; CameraRotation = ViewTarget.Rotation; CalcFirstPersonView(CameraLocation, CameraRotation);*/ } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |