| 1635 | } |
| 1636 | |
| 1637 | void CActor::UpdateMotionIcon(u32 mstate_rl) |
| 1638 | { |
| 1639 | CUIMotionIcon& motion_icon = HUD().GetUI()->UIMainIngameWnd->MotionIcon(); |
| 1640 | if (mstate_rl & mcClimb) |
| 1641 | { |
| 1642 | motion_icon.ShowState(CUIMotionIcon::stClimb); |
| 1643 | } |
| 1644 | else |
| 1645 | { |
| 1646 | if (mstate_rl & mcCrouch) |
| 1647 | { |
| 1648 | if (!isActorAccelerated(mstate_rl, IsZoomAimingMode())) |
| 1649 | motion_icon.ShowState(CUIMotionIcon::stCreep); |
| 1650 | else |
| 1651 | motion_icon.ShowState(CUIMotionIcon::stCrouch); |
| 1652 | } |
| 1653 | else if (mstate_rl & mcSprint) |
| 1654 | motion_icon.ShowState(CUIMotionIcon::stSprint); |
| 1655 | else if (mstate_rl & mcAnyMove && isActorAccelerated(mstate_rl, IsZoomAimingMode())) |
| 1656 | motion_icon.ShowState(CUIMotionIcon::stRun); |
| 1657 | else |
| 1658 | motion_icon.ShowState(CUIMotionIcon::stNormal); |
| 1659 | } |
| 1660 | |
| 1661 | /* |
| 1662 | stNormal, -- |
| 1663 | stCrouch, -- |
| 1664 | stCreep, -- |
| 1665 | stClimb, -- |
| 1666 | stRun, -- |
| 1667 | stSprint, -- |
| 1668 | */ |
| 1669 | } |
| 1670 | |
| 1671 | CPHDestroyable* CActor::ph_destroyable() { return smart_cast<CPHDestroyable*>(character_physics_support()); } |
| 1672 |
nothing calls this directly
no test coverage detected