Dead bodies have extra friction.
()
| 874 | * Dead bodies have extra friction. |
| 875 | */ |
| 876 | public static void PM_DeadMove() { |
| 877 | float forward; |
| 878 | |
| 879 | if (null == pm.groundentity) |
| 880 | return; |
| 881 | |
| 882 | // extra friction |
| 883 | forward = Math3D.VectorLength(pml.velocity); |
| 884 | forward -= 20; |
| 885 | if (forward <= 0) { |
| 886 | Math3D.VectorClear(pml.velocity); |
| 887 | } else { |
| 888 | Math3D.VectorNormalize(pml.velocity); |
| 889 | Math3D.VectorScale(pml.velocity, forward, pml.velocity); |
| 890 | } |
| 891 | } |
| 892 | |
| 893 | public static boolean PM_GoodPosition() { |
| 894 | trace_t trace; |
no test coverage detected