Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TagPro Behind Custom Ball
- // @namespace http://*.koalabeast.com:*
- // @version 1.4.1
- // @description Shows ball spin, empty power-up tiles, and pixel perfect tagpro/rolling bomb. Also new textures.
- // @match http://koalabeast.com
- // @copyright 2014+, Ly, Cumflakes, Cam
- // @include http://*.koalabeast.com*
- // @include http://*.jukejuice.com*
- // @include http://*.newcompte.fr*
- // @include http://justletme.be*
- // ==/UserScript==
- tagpro.ready(function(){
- //This is important.
- if(tagpro.events.drawPlayer)
- return;
- var image = new Image();
- image.src = "http://i.imgur.com/FKCVoxa.png";
- tagpro.events.register({
- drawPlayer: function(player, context, drawPos, TILESIZE) {
- if (player.tagpro)
- context.drawImage(image, 2 * 40, 0, 40, 40, drawPos.x, drawPos.y, 40 / tagpro.zoom, 40 / tagpro.zoom);
- if (player.team == 1)
- context.drawImage(image, 1 * 40, 0, 40, 40, drawPos.x, drawPos.y, 40 / tagpro.zoom, 40 / tagpro.zoom);
- if (player.team == 2)
- context.drawImage(image, 0 * 40, 0, 40, 40, drawPos.x, drawPos.y, 40 / tagpro.zoom, 40 / tagpro.zoom);
- if (player.bomb && Math.round(Math.random() * 4) == 1) {
- context.globalAlpha = 0.7;
- context.drawImage(image, 3 * 40, 0, 40, 40, drawPos.x, drawPos.y, 40 / tagpro.zoom, 40 / tagpro.zoom);
- context.globalAlpha = 1;
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment