Fix 3 bugs

* Footsteps doesn't play while sprinting
* Player doesn't kick ped in ground at first time
* Looking around with numpad is problematic

Signed-off-by: eray orçunus <erayorcunus@gmail.com>
This commit is contained in:
eray orçunus
2019-06-27 06:30:29 +03:00
parent 15da9beff1
commit b8862cf59c
3 changed files with 6 additions and 6 deletions

View File

@ -249,7 +249,7 @@ CheckForPedsOnGroundToAttack(CPlayerPed *player, CPed **pedOnGround)
foundDead = 1;
if (!deadPed)
deadPed = (CPed*)currentPed;
} else if (currentPed->IsPedHeadAbovePos(-0.6f)) {
} else if (!currentPed->IsPedHeadAbovePos(-0.6f)) {
foundOnTheFloor = 1;
if (!pedOnTheFloor)
pedOnTheFloor = (CPed*)currentPed;