simulated singular event Rotator GetBaseAimRotation()
{
local rotator POVRot;
local byte ViewPitch;
POVRot = Rotation;
// If our Pitch is 0, then use RemoveViewPitch
if( POVRot.Pitch == 0 )
{
if (RemoteViewPitch == 0)
ViewPitch = 0;
else if (RemoteViewPitch == 64)
ViewPitch = 32;
else if (RemoteViewPitch == 448)
ViewPitch = 224;
else if (RemoteViewPitch == 128)
{
if(bIsUpPressed)
ViewPitch = 64;
else
ViewPitch = 192;
}
POVRot.Pitch = ViewPitch << 8;
}
if (POVRot.Pitch < 0)
POVRot.Pitch = -POVRot.Pitch;
return POVRot;
}
Bookmarks