I need help with ambiguously named variables

Started by clarence112 on Sun, 09/08/2019 - 14:36

Topic category: Advanced modding

Last seen on 23:44, 13. Oct 2019
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I need help with ambiguously named variables
Sun, 09/08/2019 - 14:36

I need help with ambiguously named variables, particularly those in the animation section of entities.

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity e)

What do the variables f through f5 represent?

As far as I can tell:

  • f is the entity's age in ticks
  • f1 is the entity's current speed
  • f3 is the entity's head Y angle
  • f4 is the entity's head X angle
Last seen on 11:49, 18. Oct 2019
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
It's surely the entity's…
Sun, 09/08/2019 - 15:48

It's surely the entity's head Z angle. You have write Y angl, X Angle, but not the Z Angle.

Last seen on 23:44, 13. Oct 2019
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Is that f2 or f5?
Sun, 09/08/2019 - 15:52

Is that f2 or f5?

Last seen on 23:44, 13. Oct 2019
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Ok here's what I've figured…
Sun, 09/08/2019 - 17:57

Ok here's what I've figured out:

  • f is the distance the entity has traveled
  • f1 is the current speed
  • f2 is the age in ticks
  • f3 is head y
  • f4 is head x
  • f5 is ?
Last seen on 10:41, 6. Oct 2019
Joined Nov 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Then f5 must be head z?     …
Mon, 09/09/2019 - 17:38

Then f5 must be head z?