ScriptEntityParticle:

-Added scripted particles which can not face the player, having their angles be absolute in the world instead of relative to the camera.
-set/getFacePlayer() functions added.
This commit is contained in:
Luis C.M committed 2022-05-04 18:08:54 -05:00
1 parent 1cd3ff31b6
commit f16e2402a6
6 files changed
+44 -67

No files matched your search

@@ -113,6 +113,8 @@ public class NoppesUtil {
float rotationZRate = buffer.readFloat();
int rotationZRateStart = buffer.readInt();
boolean facePlayer = buffer.readBoolean();
int entityID = buffer.readInt();
World worldObj = Minecraft.getMinecraft().theWorld;
@@ -131,7 +133,7 @@ public class NoppesUtil {
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
maxAge
maxAge, facePlayer
);
for(int i = 0; i < amount; i++){