mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 20:25:13 +00:00
IJobPuppet:
-Added the option to not interpolate between angles and move from one value to another at a constant speed.
This commit is contained in:
1 parent
b4cb69000e
commit
4346992f14
4 files changed
+64
-17
No files matched your search
@@ -16,19 +16,29 @@ public class ScriptJobPuppet extends ScriptJobInterface implements IJobPuppet {
|
||||
this.job.animate = animated;
|
||||
}
|
||||
|
||||
public boolean fullAngles() {
|
||||
return job.fullAngles;
|
||||
public boolean isAnimated() {
|
||||
return this.job.animate;
|
||||
}
|
||||
|
||||
public void setInterpolated(boolean interpolate) {
|
||||
this.job.interpolate = interpolate;
|
||||
}
|
||||
|
||||
public boolean isInterpolated() {
|
||||
return this.job.interpolate;
|
||||
}
|
||||
|
||||
public void setFullAngles(boolean limit) {
|
||||
job.fullAngles = limit;
|
||||
}
|
||||
|
||||
public boolean isAnimated() {
|
||||
return this.job.animate;
|
||||
public boolean fullAngles() {
|
||||
return job.fullAngles;
|
||||
}
|
||||
|
||||
public void setAnimRate(float animRate) {
|
||||
if (animRate < 0)
|
||||
animRate = 0;
|
||||
this.job.animRate = animRate;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user