Last active
August 29, 2015 14:25
-
-
Save kjmehta01/885c98827068556119b1 to your computer and use it in GitHub Desktop.
Uses different texture packs for different maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TagPro Different Textures for Different Maps | |
// @namespace github.com/kunmeh13 | |
// @description Use different texture packs for different maps | |
// @include http://*.koalabeast.com:* | |
// @include http://tangent.jukejuice.com:* | |
// @include http://*.newcompte.fr:* | |
// @author /u/kunmeh13 | |
// @version 1 | |
// ==/UserScript== | |
var map = tagpro.map.info.name(); | |
var y = 1; | |
var maps1 = ["Bulldog"];//Put butt shaped maps here | |
var maps2 = ["CommandCenter","Ricochet"];//Put squiggly shaped maps here | |
//URLS FOR THE ROTATIONALLY SYMMETRICAL MAPS/SQUIGGLY MAPS | |
var squigglyMapTiles = 'http://i.imgur.com/22ehddn.png'; //Tiles | |
var squigglyMapNeutralBoosts = 'http://i.imgur.com/whatever.png'; //Neutral Boosts | |
var squigglyMapRedBoosts = 'http://i.imgur.com/whatever.png'; //Red Team Boosts | |
var squigglyMapBlueBoosts = 'http://i.imgur.com/whatever.png'; //Blue Team Boosts | |
var squigglyMapSplats = 'http://i.imgur.com/whatever.png'; //Splats | |
var squigglyMapPortals = 'http://i.imgur.com/whatever.png'; //Portals | |
//URLS FOR THE BUTT SHAPED MAPS/HORIZONTALLY OR VERTICALLY SYMMETRICAL MAPS | |
var buttMapTiles = 'http://i.imgur.com/whatever.png'; //Tiles | |
var buttMapNeutralBoosts = 'http://i.imgur.com/whatever.png'; //Neutral Boosts | |
var buttMapRedBoosts = 'http://i.imgur.com/whatever.png'; //Red Team Boosts | |
var buttMapBlueBoosts = 'http://i.imgur.com/whatever.png'; //Blue Team Boosts | |
var buttMapSplats = 'http://i.imgur.com/whatever.png'; //Splats | |
var buttMapPortals = 'http://i.imgur.com/whatever.png'; //Portals | |
//URLS FOR ALL OTHER MAPS | |
var MapTiles = 'http://i.imgur.com/22ehddn.png'; //Tiles | |
var MapNeutralBoosts = 'http://i.imgur.com/r7beMZp.png'; //Neutral Boosts | |
var MapRedBoosts = 'http://i.imgur.com/xAHMOOV.png'; //Red Team Boosts | |
var MapBlueBoosts = 'http://i.imgur.com/R1TGL5x.png'; //Blue Team Boosts | |
var MapSplats = 'http://i.imgur.com/NKBd7nE.png'; //Splats | |
var MapPortals = 'http://i.imgur.com/GbdQNJJ.png'; //Portals | |
for(i=0; i < maps2.length; i++){ | |
if(maps1[i] == map){ | |
tagpro.loadAssets({ | |
"tiles": squigglyMapTiles, | |
"splats": squigglyMapSplats, | |
"speedpad": squigglyMapNeutralBoosts, | |
"speedpadRed": squigglyMapRedBoosts, | |
"speedpadBlue": squigglyMapBlueBoosts, | |
"portal": squigglyMapPortals | |
}); | |
y = y + 1; | |
} | |
} | |
if(y == 1){ | |
for(i=0; i < maps1.length; i++){ | |
if(maps2[i] == map){ | |
tagpro.loadAssets({ | |
"tiles": buttMapTiles, | |
"splats": buttMapSplats, | |
"speedpad": buttMapNeutralBoosts, | |
"speedpadRed": buttMapRedBoosts, | |
"speedpadBlue": buttMapBlueBoosts, | |
"portal": buttMapPortals | |
}); | |
} | |
} | |
} | |
else{ | |
tagpro.loadAssets({ | |
"tiles": MapTiles, | |
"splats": MapSplats, | |
"speedpad": MapNeutralBoosts, | |
"speedpadRed": MapRedBoosts, | |
"speedpadBlue": MapBlueBoosts, | |
"portal": MapPortals | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment