mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 19:40:48 +00:00
script fix
This commit is contained in:
@ -19167,10 +19167,11 @@ CPed::AttachPedToEntity(CEntity *ent, CVector offset, uint16 type, float rot, eW
|
||||
void
|
||||
CPed::DettachPedFromEntity(void)
|
||||
{
|
||||
CEntity* pVehicleAttachedTo = m_attachedTo;
|
||||
m_attachedTo = nil;
|
||||
if (m_nPedState == PED_DIE) {
|
||||
m_pCollidingEntity = m_attachedTo;
|
||||
ApplyMoveForce(m_attachedTo->GetForward() * -4.0f);
|
||||
m_pCollidingEntity = pVehicleAttachedTo;
|
||||
ApplyMoveForce(pVehicleAttachedTo->GetForward() * -4.0f);
|
||||
bIsStanding = false;
|
||||
} else if (m_nPedState != PED_DEAD) {
|
||||
RestorePreviousState();
|
||||
|
Reference in New Issue
Block a user