mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-04 21:05:54 +00:00
commit
62b6788dc5
|
@ -1677,11 +1677,11 @@ int16 CPad::LookAroundLeftRight(void)
|
||||||
float axis = GetPad(0)->NewState.RightStickX;
|
float axis = GetPad(0)->NewState.RightStickX;
|
||||||
|
|
||||||
if ( fabs(axis) > 85 && !GetLookBehindForPed() )
|
if ( fabs(axis) > 85 && !GetLookBehindForPed() )
|
||||||
return (int16) ( (axis + ( axis > 0 ) ? -85 : 85)
|
return (int16) ( (axis + ( ( axis > 0 ) ? -85 : 85) )
|
||||||
* (127.0f / 32.0f) ); // 3.96875f
|
* (127.0f / 32.0f) ); // 3.96875f
|
||||||
|
|
||||||
else if ( TheCamera.Cams[0].Using3rdPersonMouseCam() && fabs(axis) > 10 )
|
else if ( TheCamera.Cams[0].Using3rdPersonMouseCam() && fabs(axis) > 10 )
|
||||||
return (int16) ( (axis + ( axis > 0 ) ? -10 : 10)
|
return (int16) ( (axis + ( ( axis > 0 ) ? -10 : 10) )
|
||||||
* (127.0f / 64.0f) ); // 1.984375f
|
* (127.0f / 64.0f) ); // 1.984375f
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1692,11 +1692,11 @@ int16 CPad::LookAroundUpDown(void)
|
||||||
int16 axis = GetPad(0)->NewState.RightStickY;
|
int16 axis = GetPad(0)->NewState.RightStickY;
|
||||||
|
|
||||||
if ( abs(axis) > 85 && !GetLookBehindForPed() )
|
if ( abs(axis) > 85 && !GetLookBehindForPed() )
|
||||||
return (int16) ( (axis + ( axis > 0 ) ? -85 : 85)
|
return (int16) ( (axis + ( ( axis > 0 ) ? -85 : 85) )
|
||||||
* (127.0f / 32.0f) ); // 3.96875f
|
* (127.0f / 32.0f) ); // 3.96875f
|
||||||
|
|
||||||
else if ( TheCamera.Cams[0].Using3rdPersonMouseCam() && abs(axis) > 40 )
|
else if ( TheCamera.Cams[0].Using3rdPersonMouseCam() && abs(axis) > 40 )
|
||||||
return (int16) ( (axis + ( axis > 0 ) ? -40 : 40)
|
return (int16) ( (axis + ( ( axis > 0 ) ? -40 : 40) )
|
||||||
* (127.0f / 64.0f) ); // 1.984375f
|
* (127.0f / 64.0f) ); // 1.984375f
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -48,7 +48,7 @@ CAnimBlendAssociation*
|
||||||
RpAnimBlendGetNextAssociation(CAnimBlendAssociation *assoc)
|
RpAnimBlendGetNextAssociation(CAnimBlendAssociation *assoc)
|
||||||
{
|
{
|
||||||
if(assoc->link.next)
|
if(assoc->link.next)
|
||||||
CAnimBlendAssociation::FromLink(assoc->link.next);
|
return CAnimBlendAssociation::FromLink(assoc->link.next);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@ CheckForPedsOnGroundToAttack(CPlayerPed *player, CPed **pedOnGround)
|
||||||
foundDead = 1;
|
foundDead = 1;
|
||||||
if (!deadPed)
|
if (!deadPed)
|
||||||
deadPed = (CPed*)currentPed;
|
deadPed = (CPed*)currentPed;
|
||||||
} else if (currentPed->IsPedHeadAbovePos(-0.6f)) {
|
} else if (!currentPed->IsPedHeadAbovePos(-0.6f)) {
|
||||||
foundOnTheFloor = 1;
|
foundOnTheFloor = 1;
|
||||||
if (!pedOnTheFloor)
|
if (!pedOnTheFloor)
|
||||||
pedOnTheFloor = (CPed*)currentPed;
|
pedOnTheFloor = (CPed*)currentPed;
|
||||||
|
|
Loading…
Reference in a new issue