From d0213e466c02974b5aaba0d1fad334ff9281f6cc Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 7 Jun 2020 15:49:25 +0300 Subject: more script commands --- src/peds/Ped.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/peds/Ped.cpp') diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 961b8f61..744ba793 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -3770,7 +3770,8 @@ CPed::ClearAll(void) bIsPointingGunAt = false; bRenderPedInCar = true; bKnockedUpIntoAir = false; - b158_4 = false; + bCrouchWhenScared = false; + bKnockedOffBike = false; m_pCollidingEntity = nil; } @@ -7054,7 +7055,7 @@ CPed::Fall(void) CAnimBlendAssociation *firstPartialAssoc; CAnimBlendAssociation *fallAssoc; - if (IsPlayer() && (bKnockedUpIntoAir || b158_4) && !bIsStanding) { + if (IsPlayer() && (bKnockedUpIntoAir || bKnockedOffBike) && !bIsStanding) { firstPartialAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_PARTIAL); // What??? @@ -7082,7 +7083,7 @@ CPed::Fall(void) } else { CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FALL_BACK, 8.0f); } - } else if ((bKnockedUpIntoAir || b158_4) && bIsStanding && !bWasStanding) { + } else if ((bKnockedUpIntoAir || bKnockedOffBike) && bIsStanding && !bWasStanding) { fallAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FALL_BACK); if (!fallAssoc) @@ -7090,7 +7091,7 @@ CPed::Fall(void) if (fallAssoc) { bKnockedUpIntoAir = false; - b158_4 = false; + bKnockedOffBike = false; fallAssoc->speed = 3.0f; if (IsPlayer()) Say(SOUND_PED_LAND); @@ -7099,7 +7100,7 @@ CPed::Fall(void) firstPartialAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_PARTIAL); if (firstPartialAssoc && !firstPartialAssoc->IsRunning()) { bKnockedUpIntoAir = false; - b158_4 = false; + bKnockedOffBike = false; } } } -- cgit v1.2.3