Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. // ==UserScript==
  2. // @name TagPro Ball Spin
  3. // @version 0.1
  4. // @description Rotates balls to show the spin
  5. // @include http://tagpro-*.koalabeast.com:*
  6. // @include http://tangent.jukejuice.com:*
  7. // @include http://*.newcompte.fr:*
  8. // @author Some Ball -1
  9. // ==/UserScript==
  10.  
  11. tagpro.ready(function() {
  12. $('#tiles')[0].src = 'http://i.imgur.com/f6Cc0hH.png';
  13. $('#splats')[0].src = 'http://i.imgur.com/CIaoSad.png';
  14. $('#speedpad')[0].src = 'http://i.imgur.com/6h2Fna8.png';
  15. $('#speedpadred')[0].src = 'http://i.imgur.com/pF4l9SO.png';
  16. $('#speedpadblue')[0].src = 'http://i.imgur.com/NlepAuW.png';
  17. tr = tagpro.renderer;
  18. tr.anchorBall = function(player) {
  19. player.sprites.actualBall.anchor.x = .5
  20. player.sprites.actualBall.anchor.y = .5;
  21. player.sprites.actualBall.x = 20;
  22. player.sprites.actualBall.y = 20;
  23. }
  24. var old = tr.updatePlayerSpritePosition;
  25. tr.updatePlayerSpritePosition = function (player) {
  26. if(!player.sprites.actualBall.anchor.x)
  27. {
  28. tr.anchorBall(player);
  29. }
  30. player.sprites.actualBall.rotation = player.angle;
  31. old(player);
  32. };
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement