mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 05:15:11 +00:00
Added more API functions to IJobPuppet, and a "limitAngles" variable that lets puppet parts use full angles.
This commit is contained in:
1 parent
c950dcfa5a
commit
678ee8fc02
5 files changed
+133
-8
No files matched your search
@@ -628,7 +628,7 @@ public class ModelMPM extends ModelNPCMale{
|
||||
}
|
||||
|
||||
public void setInterpolatedAngles(JobPuppet job, ModelRenderer modelPart, JobPuppet.PartConfig puppetPart) {
|
||||
float pi = (float) Math.PI;
|
||||
float pi = (float) Math.PI * (job.limitAngles ? 1 : 2);
|
||||
if (!job.animate) {
|
||||
modelPart.rotateAngleX = puppetPart.rotationX * pi;
|
||||
modelPart.rotateAngleY = puppetPart.rotationY * pi;
|
||||
|
||||
Reference in new issue
Block a user