Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class RCamera extends Camera;
- var vector Loc;
- var Rotator Rot;
- var int LocZ;
- /***********************************************************
- ** Default Properties **
- ***********************************************************/
- function UpdateViewTarget(out TViewTarget OutVT, float DeltaTime)
- {
- switch(CameraStyle)
- {
- case 'MenuCam' :
- case 'OverviewCam' :
- if (CameraStyle == 'MenuCam')
- {
- //Empty, Places the Cam @ 0,0,0.
- }
- if (CameraStyle == 'OverviewCam')
- {
- Loc.Z = LocZ
- }
- OutVT.POV.Rotation = Rot;
- OutVT.POV.Location = Loc;
- }
- }
- /***********************************************************
- ** Default Properties **
- ***********************************************************/
- DefaultProperties
- {
- LocZ = 200
- }
Advertisement
Add Comment
Please, Sign In to add comment