mirror of
https://github.com/halpz/re3.git
synced 2025-05-12 23:46:39 +03:00
Ped & fixes, including peds dive into danger fix
This commit is contained in:
parent
3bb607f9cb
commit
8fd63e5ca6
10 changed files with 876 additions and 137 deletions
|
@ -1304,6 +1304,17 @@ CCam::GetWeaponFirstPersonOn()
|
|||
return false;
|
||||
}
|
||||
|
||||
float
|
||||
CCamera::Find3rdPersonQuickAimPitch(void)
|
||||
{
|
||||
float clampedFrontZ = clamp(Cams[ActiveCam].Front.z, -1.0f, 1.0f);
|
||||
|
||||
// float rot = atan2(clampedFrontZ, sqrt(1.0f - sq(clampedFrontZ)));
|
||||
float rot = Asin(clampedFrontZ);
|
||||
|
||||
return -(DEGTORAD(((0.5f - m_f3rdPersonCHairMultY) * 1.8f * 0.5f * Cams[ActiveCam].FOV)) + rot);
|
||||
}
|
||||
|
||||
STARTPATCHES
|
||||
InjectHook(0x42C760, (bool (CCamera::*)(const CVector ¢er, float radius, const CMatrix *mat))&CCamera::IsSphereVisible, PATCH_JUMP);
|
||||
InjectHook(0x46FD00, &CCamera::SetFadeColour, PATCH_JUMP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue