Extends LS_LADDER_IDLE (56)
| 969 | |
| 970 | // Extends LS_LADDER_IDLE (56) |
| 971 | bool LadderMonkeyExtra(ItemInfo* item, CollisionInfo* coll) |
| 972 | { |
| 973 | auto probe = GetPointCollision(*item); |
| 974 | |
| 975 | if (probe.IsSteepCeiling()) |
| 976 | return false; |
| 977 | |
| 978 | if (probe.GetBottomSector().Flags.Monkeyswing && (item->Pose.Position.y - coll->Setup.Height - CLICK(0.5f) <= probe.GetCeilingHeight())) |
| 979 | { |
| 980 | item->Animation.TargetState = LS_MONKEY_IDLE; |
| 981 | return true; |
| 982 | } |
| 983 | |
| 984 | return false; |
| 985 | } |
| 986 | |
| 987 | // Extends LS_LADDER_DOWN (61) |
| 988 | void SlopeClimbDownExtra(ItemInfo* item, CollisionInfo* coll) |
no test coverage detected