Guest User

Untitled

a guest
Jun 4th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Class RCamera extends Camera;
  2.  
  3. var vector Loc;
  4. var Rotator Rot;
  5. var int LocZ;
  6.  
  7.  
  8. /***********************************************************
  9. ** Default Properties                                     **
  10. ***********************************************************/
  11.  
  12. function UpdateViewTarget(out TViewTarget OutVT, float DeltaTime)
  13. {
  14.       switch(CameraStyle)
  15.       {
  16.             case 'MenuCam' :
  17.             case 'OverviewCam' :
  18.  
  19.             if (CameraStyle == 'MenuCam')
  20.             {
  21.                   //Empty, Places the Cam @ 0,0,0.
  22.             }
  23.  
  24.             if (CameraStyle == 'OverviewCam')
  25.             {
  26.                     Loc.Z = LocZ
  27.             }
  28.  
  29.             OutVT.POV.Rotation = Rot;
  30.             OutVT.POV.Location = Loc;
  31.       }
  32. }
  33.  
  34. /***********************************************************
  35. ** Default Properties                                     **
  36. ***********************************************************/
  37.  
  38. DefaultProperties
  39. {
  40.     LocZ = 200
  41. }
Advertisement
Add Comment
Please, Sign In to add comment