Advertisement
adri1

part

Apr 10th, 2016
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. new Float:X, Float:Y, Float:Z, Float:RZ;
  2. forward Update();
  3. public Update()
  4. {
  5.  
  6. GetObjectPos(MOVEBASE, X, Y, Z);
  7.  
  8. Y = Origin_X + (len * floatsin(angle, degrees));
  9. Z = Origin_Y + (len * floatcos(angle, degrees));
  10.  
  11. SetObjectPos(MOVEBASE, X, Y, Z);
  12. aAcc = (-0.005) * floatsin(angle, degrees);
  13. aVel += aAcc;
  14. angle += aVel;
  15. aVel *= damping;
  16. //printf("%f, %f", aAcc, aVel);
  17. RZ += 1.0;
  18.  
  19. SetObjectRot(MOVEBASE, -angle, 0.0, 0.0);
  20. EDIT_OBJECT_RotateZ(MOVEBASE, RZ); //This is for rotate bob, function from UOE by Stylock
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement