Skip to content

Instantly share code, notes, and snippets.

@theVDude
Created April 9, 2016 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theVDude/9a83e158197df04b6f754d40798d6052 to your computer and use it in GitHub Desktop.
Save theVDude/9a83e158197df04b6f754d40798d6052 to your computer and use it in GitHub Desktop.
make all splats fade away in tagpro
// ==UserScript==
// @name TagPro All Temp Splats
// @description Make all splats temporary in tagpro
// @version 1
// @grant none
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// @license 2016
// @author thevdude
// ==/UserScript==
tagpro.ready(function() {
tagpro.renderer.drawSplat = function (x, y, team, isStarting, isTemporary) {
var o, u;
team === 1 ? o = "ff0000" : o = "0000ff";
u = "ffffff";
isStarting && (tagpro.renderer.options.disableParticles ? tagpro.renderer.drawBallPop(x + 19, y + 19, team) : tagpro.renderer.startDeathEmitter(o, u, x + 19, y + 19));
tagpro.renderer.addSplat(team, x, y, true);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment