mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-13 12:40:34 +00:00
script fix
This commit is contained in:
parent
3900366a6b
commit
f78f707935
4 changed files with 19 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue