Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BlueBerryYumYum extends Camera; //Camera class defined in Playercontroller, Camerastyle defined in Pawn
- var rotator Rot;
- var vector Loc;
- var int CamX, CamY, CamZ, RotP;
- function UpdateViewTarget(out TViewTarget OutVT, float DeltaTime)
- {
- switch(CameraStyle)
- {
- case 'EmptyCam' :
- case 'RoadKillGrillCam' :
- if (CameraStyle == 'EmptyCam')
- {
- //Empty, Places the Cam @ 0,0,0. Looking along the Y-Axis I presume
- }
- if (CameraStyle == 'RoadKillGrillCam')
- {
- Rot.Pitch = RotP;
- Loc.X = CamX;
- Loc.Y = CamY;
- Loc.Z = CamZ;
- }
- OutVT.POV.Rotation = Rot;
- OutVT.POV.Location = Loc;
- }
- }
- DefaultProperties
- {
- RotP = 55000; //Rotates the camera to look ~downwards
- CamX = 0;
- CamY = 0;
- CamZ = 500;
- }
Add Comment
Please, Sign In to add comment