54 lines
1.6 KiB
Java
54 lines
1.6 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
import net.runelite.rs.ScriptOpcodes;
|
|
|
|
@ObfuscatedName("li")
|
|
public class class323 {
|
|
@ObfuscatedName("bh")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lka;"
|
|
)
|
|
@Export("clientLanguage")
|
|
static Language clientLanguage;
|
|
|
|
@ObfuscatedName("ak")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(ILbg;ZI)I",
|
|
garbageValue = "-336634380"
|
|
)
|
|
static int method5819(int var0, Script var1, boolean var2) {
|
|
int var3;
|
|
if (var0 == ScriptOpcodes.CAM_FORCEANGLE) {
|
|
class240.Interpreter_intStackSize -= 2;
|
|
var3 = Interpreter.Interpreter_intStack[class240.Interpreter_intStackSize];
|
|
int var4 = Interpreter.Interpreter_intStack[class240.Interpreter_intStackSize + 1];
|
|
if (!Client.isCameraLocked) {
|
|
Client.camAngleX = var3;
|
|
Client.camAngleY = var4;
|
|
}
|
|
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_XA) {
|
|
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = Client.camAngleX;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_YA) {
|
|
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = Client.camAngleY;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.CAM_SETFOLLOWHEIGHT) {
|
|
var3 = Interpreter.Interpreter_intStack[--class240.Interpreter_intStackSize];
|
|
if (var3 < 0) {
|
|
var3 = 0;
|
|
}
|
|
|
|
Client.camFollowHeight = var3;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.CAM_GETFOLLOWHEIGHT) {
|
|
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = Client.camFollowHeight;
|
|
return 1;
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|
|
}
|