mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 00:15:15 -06:00
Started organizing CS2/Protocol-related functions
This commit is contained in:
parent
46740027df
commit
ef6a5d7385
268 changed files with 5936 additions and 6093 deletions
|
|
@ -8,17 +8,8 @@ public class Camera {
|
|||
@OriginalMember(owner = "client!eg", name = "d", descriptor = "I")
|
||||
public static double yawTarget = 0;
|
||||
|
||||
public static int pitchDirection = -1;
|
||||
|
||||
public static int yawDirection = -1;
|
||||
|
||||
public static int getPitch() {
|
||||
return pitchDirection == 1 ? (int)Math.ceil(pitchTarget) : (int)pitchTarget;
|
||||
}
|
||||
|
||||
public static int getYaw() {
|
||||
return yawDirection == 1 ? (int)Math.floor(yawTarget) : (int)yawTarget;
|
||||
}
|
||||
@OriginalMember(owner = "client!ef", name = "i", descriptor = "I")
|
||||
public static double pitchAccel = 0;
|
||||
|
||||
public static double mod(double a, double b) {
|
||||
return ((a % b) + b) % b;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue