21
feb
@ 7:35pm
14
jan

There was a small error in the example file that was posted on the website and in the download.

I uploaded a new zip file, but the API itself hasn't changed any.

Tags: projects, aion
@ 9:38pm
4
dec
Tags: gaming, cod, fail
@ 11:30pm
16
nov

This is a simple snippet to make a fixed third person camera in the newly released Unreal Development Kit (UDK). Found in this thread.

class RPGController extends UTPlayerController;

//Camera Calculations

var vector LastViewLoc;

var vector CameraOffset;

var vector CameraOffset2;

//Force third-person

function SetBehindView( bool bNewBehindView )

{

super.SetBehindView( true );

}

// RPG Camera (based on Third-Person Camera)

simulated event GetPlayerViewPoint( out vector POVLocation, out Rotator POVRotation )

{

if ( ViewTarget != none )

{

LastViewLoc = ViewTarget.Location;

bCollideWorld = true;

}

POVLocation = LastViewLoc + CameraOffset2;

POVRotation = rotator( -CameraOffset );

StopViewShaking();

if ( CameraEffect != none )

CameraEffect.UpdateLocation( POVLocation, POVRotation, GetFOVAngle( ) );

}

// Allows the mouse to still aim weapons

function rotator GetAdjustedAimFor(Weapon W, vector StartFireLoc)

{

return Pawn.Rotation;

}

defaultproperties

{

//Camera

bBehindView=true;

CameraOffset=(X=1,Y=1,Z=1)

CameraOffset2=(X=200,Y=200,Z=300)

}

Tags: code, snip, udk
@ 2:13am
14
nov
Tags: gaming, cod
@ 2:18am

© 2009 Blake Harley — all rights reserved. All times are Central Standard Time (GMT-6).