mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-06 05:25:55 +00:00
Merge remote-tracking branch 'origin/miami' into lcs
# Conflicts: # src/control/Script.cpp
This commit is contained in:
commit
0ad1426950
|
@ -2755,9 +2755,10 @@ wchar *CControllerConfigManager::GetButtonComboText(e_ControllerAction action)
|
||||||
void CControllerConfigManager::SetControllerKeyAssociatedWithAction(e_ControllerAction action, int32 key, eControllerType type)
|
void CControllerConfigManager::SetControllerKeyAssociatedWithAction(e_ControllerAction action, int32 key, eControllerType type)
|
||||||
{
|
{
|
||||||
ResetSettingOrder(action);
|
ResetSettingOrder(action);
|
||||||
|
int numOfSettings = GetNumOfSettingsForAction(action);
|
||||||
|
|
||||||
m_aSettings[action][type].m_Key = key;
|
m_aSettings[action][type].m_Key = key;
|
||||||
m_aSettings[action][type].m_ContSetOrder = GetNumOfSettingsForAction(action) + 1;
|
m_aSettings[action][type].m_ContSetOrder = numOfSettings + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 CControllerConfigManager::GetMouseButtonAssociatedWithAction(e_ControllerAction action)
|
int32 CControllerConfigManager::GetMouseButtonAssociatedWithAction(e_ControllerAction action)
|
||||||
|
@ -2767,8 +2768,10 @@ int32 CControllerConfigManager::GetMouseButtonAssociatedWithAction(e_ControllerA
|
||||||
|
|
||||||
void CControllerConfigManager::SetMouseButtonAssociatedWithAction(e_ControllerAction action, int32 button)
|
void CControllerConfigManager::SetMouseButtonAssociatedWithAction(e_ControllerAction action, int32 button)
|
||||||
{
|
{
|
||||||
|
int numOfSettings = GetNumOfSettingsForAction(action);
|
||||||
|
|
||||||
m_aSettings[action][MOUSE].m_Key = button;
|
m_aSettings[action][MOUSE].m_Key = button;
|
||||||
m_aSettings[action][MOUSE].m_ContSetOrder = GetNumOfSettingsForAction(action) + 1;
|
m_aSettings[action][MOUSE].m_ContSetOrder = numOfSettings + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CControllerConfigManager::ResetSettingOrder(e_ControllerAction action)
|
void CControllerConfigManager::ResetSettingOrder(e_ControllerAction action)
|
||||||
|
|
|
@ -3342,6 +3342,7 @@ void
|
||||||
CPed::LineUpPedWithCar(PedLineUpPhase phase)
|
CPed::LineUpPedWithCar(PedLineUpPhase phase)
|
||||||
{
|
{
|
||||||
bool vehIsUpsideDown = false;
|
bool vehIsUpsideDown = false;
|
||||||
|
bool stillGettingInOut = false;
|
||||||
int vehAnim;
|
int vehAnim;
|
||||||
float seatPosMult = 0.0f;
|
float seatPosMult = 0.0f;
|
||||||
float currentZ;
|
float currentZ;
|
||||||
|
@ -3594,8 +3595,8 @@ CPed::LineUpPedWithCar(PedLineUpPhase phase)
|
||||||
if (m_pVehicleAnim && vehAnim != ANIM_VAN_GETIN_L && vehAnim != ANIM_VAN_CLOSE_L && vehAnim != ANIM_VAN_CLOSE && vehAnim != ANIM_VAN_GETIN) {
|
if (m_pVehicleAnim && vehAnim != ANIM_VAN_GETIN_L && vehAnim != ANIM_VAN_CLOSE_L && vehAnim != ANIM_VAN_CLOSE && vehAnim != ANIM_VAN_GETIN) {
|
||||||
neededPos.z = autoZPos.z;
|
neededPos.z = autoZPos.z;
|
||||||
m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
|
m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
|
||||||
} else if (neededPos.z <= currentZ && m_pVehicleAnim && vehAnim != ANIM_VAN_CLOSE_L && vehAnim != ANIM_VAN_CLOSE) {
|
} else if (neededPos.z < currentZ && m_pVehicleAnim && vehAnim != ANIM_VAN_CLOSE_L && vehAnim != ANIM_VAN_CLOSE) {
|
||||||
adjustedTimeStep = Min(m_pVehicleAnim->timeStep, 0.1f);
|
adjustedTimeStep = Max(m_pVehicleAnim->timeStep, 0.1f);
|
||||||
|
|
||||||
// Smoothly change ped position
|
// Smoothly change ped position
|
||||||
neededPos.z = currentZ - (currentZ - neededPos.z) / (m_pVehicleAnim->GetTimeLeft() / adjustedTimeStep);
|
neededPos.z = currentZ - (currentZ - neededPos.z) / (m_pVehicleAnim->GetTimeLeft() / adjustedTimeStep);
|
||||||
|
@ -3613,7 +3614,7 @@ CPed::LineUpPedWithCar(PedLineUpPhase phase)
|
||||||
if (m_pVehicleAnim &&
|
if (m_pVehicleAnim &&
|
||||||
(vehAnim == ANIM_CAR_GETIN_RHS || vehAnim == ANIM_CAR_GETIN_LOW_RHS || vehAnim == ANIM_CAR_GETIN_LHS || vehAnim == ANIM_CAR_GETIN_LOW_LHS
|
(vehAnim == ANIM_CAR_GETIN_RHS || vehAnim == ANIM_CAR_GETIN_LOW_RHS || vehAnim == ANIM_CAR_GETIN_LHS || vehAnim == ANIM_CAR_GETIN_LOW_LHS
|
||||||
|| vehAnim == ANIM_CAR_QJACK || vehAnim == ANIM_VAN_GETIN_L || vehAnim == ANIM_VAN_GETIN)) {
|
|| vehAnim == ANIM_CAR_QJACK || vehAnim == ANIM_VAN_GETIN_L || vehAnim == ANIM_VAN_GETIN)) {
|
||||||
adjustedTimeStep = Min(m_pVehicleAnim->timeStep, 0.1f);
|
adjustedTimeStep = Max(m_pVehicleAnim->timeStep, 0.1f);
|
||||||
|
|
||||||
// Smoothly change ped position
|
// Smoothly change ped position
|
||||||
neededPos.z = (neededPos.z - currentZ) / (m_pVehicleAnim->GetTimeLeft() / adjustedTimeStep) + currentZ;
|
neededPos.z = (neededPos.z - currentZ) / (m_pVehicleAnim->GetTimeLeft() / adjustedTimeStep) + currentZ;
|
||||||
|
@ -3625,7 +3626,6 @@ CPed::LineUpPedWithCar(PedLineUpPhase phase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool stillGettingInOut = false;
|
|
||||||
if (CTimer::GetTimeInMilliseconds() < m_nPedStateTimer)
|
if (CTimer::GetTimeInMilliseconds() < m_nPedStateTimer)
|
||||||
stillGettingInOut = veh->m_vehType != VEHICLE_TYPE_BOAT || bOnBoat;
|
stillGettingInOut = veh->m_vehType != VEHICLE_TYPE_BOAT || bOnBoat;
|
||||||
|
|
||||||
|
|
|
@ -330,7 +330,7 @@ CVehicle::FlyingControl(eFlightModel flightModel)
|
||||||
case FLIGHT_MODEL_PLANE:
|
case FLIGHT_MODEL_PLANE:
|
||||||
{
|
{
|
||||||
float fSteerLR = CPad::GetPad(0)->GetSteeringLeftRight() / 128.0f;
|
float fSteerLR = CPad::GetPad(0)->GetSteeringLeftRight() / 128.0f;
|
||||||
float fSteerUD = -CPad::GetPad(0)->GetSteeringUpDown() / 128.0f;
|
float fSteerUD = CPad::GetPad(0)->GetSteeringUpDown() / 128.0f;
|
||||||
float fGunUD = Abs(CPad::GetPad(0)->GetCarGunUpDown());
|
float fGunUD = Abs(CPad::GetPad(0)->GetCarGunUpDown());
|
||||||
#ifdef FREE_CAM
|
#ifdef FREE_CAM
|
||||||
if(!CCamera::bFreeCam || (CCamera::bFreeCam && !CPad::IsAffectedByController))
|
if(!CCamera::bFreeCam || (CCamera::bFreeCam && !CPad::IsAffectedByController))
|
||||||
|
|
Loading…
Reference in a new issue