Page MenuHomeFeedback Tracker

First person camera ignore player orientation when linked to spine bone of horse
New, NormalPublic

Description

You helped me with ticket T186298 - thank you for that.

Now I see thas player is still wrongly simulated while using first person camera.

At horse I am trying suppress camera shaking by this code:

modded class DayZPlayerCamera1stPerson
{
	override void OnUpdate(float pDt, out DayZPlayerCameraResult pOutResult)
    {
        super.OnUpdate(pDt, pOutResult);

        Horse_Base horse;	
        if (PlayerBase.Cast(m_pPlayer).GetHorseObject())
		{
			horse = PlayerBase.Cast(m_pPlayer).GetHorseObject();
			//thx to Jacob
			pOutResult.m_fIgnoreParentRoll = 1.0;
			pOutResult.m_fIgnoreParentPitch = 1.0; 
		}
    }
}

This is how its behave on slope terrain - you can see third person view is correct, but first person camera showing player still wrongly oriented and even outside saddle

Howto fix that ?

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10
Category
General

Event Timeline

Hunterz created this task.Mon, Nov 25, 6:16 PM

ok I see its due my modification, I expected it will suppress camera shake, but it just simply froze complete player body. Is this intended?

Looks like I need another custom 1pp camera but registration is blocked by ticket T182151.

Hunterz renamed this task from First person camera ignore player orientation when linekd to spine bone of horse to First person camera ignore player orientation when linked to spine bone of horse.Mon, Nov 25, 6:26 PM