Guest User

Untitled

a guest
Aug 10th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class BlueBerryYumYum extends Camera;   //Camera class defined in Playercontroller, Camerastyle defined in Pawn
  2.  
  3. var rotator Rot;
  4. var vector Loc;
  5.  
  6. var int CamX, CamY, CamZ, RotP;
  7.  
  8. function UpdateViewTarget(out TViewTarget OutVT, float DeltaTime)
  9. {
  10.       switch(CameraStyle)
  11.       {
  12.             case 'EmptyCam' :
  13.             case 'RoadKillGrillCam' :
  14.  
  15.             if (CameraStyle == 'EmptyCam')
  16.             {
  17.                   //Empty, Places the Cam @ 0,0,0. Looking along the Y-Axis I presume
  18.             }
  19.  
  20.             if (CameraStyle == 'RoadKillGrillCam')
  21.             {
  22.                      Rot.Pitch = RotP;
  23.  
  24.                      Loc.X = CamX;
  25.                      Loc.Y = CamY;
  26.                      Loc.Z = CamZ;
  27.             }
  28.  
  29.             OutVT.POV.Rotation = Rot;
  30.             OutVT.POV.Location = Loc;
  31.       }
  32. }
  33.  
  34.  
  35.  
  36. DefaultProperties
  37. {
  38.       RotP = 55000;         //Rotates the camera to look ~downwards
  39.  
  40.       CamX = 0;
  41.       CamY = 0;
  42.       CamZ = 500;
  43. }
Add Comment
Please, Sign In to add comment