| 964 | } |
| 965 | |
| 966 | bool LaraCheckForLetGo(ItemInfo* item, CollisionInfo* coll) |
| 967 | { |
| 968 | auto* lara = GetLaraInfo(item); |
| 969 | |
| 970 | item->Animation.Velocity.y = 0; |
| 971 | item->Animation.IsAirborne = false; |
| 972 | |
| 973 | if (IsHeld(In::Action) && item->HitPoints > 0 || item->Animation.AnimNumber == LA_ONWATER_TO_LADDER) // Can't let go on this anim |
| 974 | return false; |
| 975 | |
| 976 | ResetPlayerFlex(item); |
| 977 | |
| 978 | SetAnimation(item, LA_FALL_START); |
| 979 | |
| 980 | item->Animation.Velocity.z = 2; |
| 981 | item->Animation.Velocity.y = 1; |
| 982 | item->Animation.IsAirborne = true; |
| 983 | lara->Control.HandStatus = HandStatus::Free; |
| 984 | return true; |
| 985 | } |
no test coverage detected