Legacy Update
BIN
images/ammo/05.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
images/attachments/hopups/10.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
images/attachments/hopups/11.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
images/bg/weapons/05.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
images/legends/icon/16.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
images/legends/passive/16.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
images/legends/tactical/16.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
images/legends/ultimate/16.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
images/weapons/bocek.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
101
script.js
@ -14,7 +14,8 @@ var legend_names = [
|
||||
"LOBA",
|
||||
"RAMPART",
|
||||
"HORIZON",
|
||||
"FUSE"
|
||||
"FUSE",
|
||||
"VALKYRIE"
|
||||
];
|
||||
|
||||
var legend_descriptions = [
|
||||
@ -33,7 +34,8 @@ var legend_descriptions = [
|
||||
"TRANSLOCATING THIEF",
|
||||
"BASE OF FIRE",
|
||||
"GRAVITATIONAL MANIPULATOR",
|
||||
"EXPLOSIVES ENTHUSIAST"
|
||||
"EXPLOSIVES ENTHUSIAST",
|
||||
"WINGED AVENGER"
|
||||
];
|
||||
|
||||
var legend_passives = [
|
||||
@ -52,7 +54,8 @@ var legend_passives = [
|
||||
"EYE FOR QUALITY",
|
||||
"MODDED LOADER",
|
||||
"SPACEWALK",
|
||||
"GRENADIER"
|
||||
"GRENADIER",
|
||||
"VTOL JETS"
|
||||
];
|
||||
|
||||
var legend_tacticals = [
|
||||
@ -71,7 +74,8 @@ var legend_tacticals = [
|
||||
"BURGLAR'S BEST FRIEND",
|
||||
"AMPED COVER",
|
||||
"GRAVITY LIFT",
|
||||
"KNUCKLE CLUSTER"
|
||||
"KNUCKLE CLUSTER",
|
||||
"MISSILE SWARM"
|
||||
];
|
||||
|
||||
var legend_ultimates = [
|
||||
@ -90,11 +94,12 @@ var legend_ultimates = [
|
||||
"BLACK MARKET BOUTIQUE",
|
||||
"EMPLACED MINIGUN \"SHEILA\"",
|
||||
"BLACK HOLE",
|
||||
"THE MOTHERLODE"
|
||||
"THE MOTHERLODE",
|
||||
"SKYWARD DIVE"
|
||||
];
|
||||
|
||||
var legend_classes = [0, 1, 2, 0, 3, 3, 1, 3, 3, 1, 0, 3, 2, 1, 3, 3];
|
||||
var legend_mods = [-1, 0, 1, 1, 1, -1, 0, -1, -1, 1, -1, -1, -1, -1, -1, -1];
|
||||
var legend_classes = [0, 1, 2, 0, 3, 3, 1, 3, 3, 1, 0, 3, 2, 1, 3, 3, 0];
|
||||
var legend_mods = [-1, 0, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1];
|
||||
var legend_classes_txt = ["RECON", "DEFENSE", "SUPPORT", "OFFENSE"];
|
||||
var legend_mods_txt = ["FORTIFIED", "LOW PROFILE"];
|
||||
|
||||
@ -111,12 +116,14 @@ var hopup_txt = [
|
||||
"ANVIL RECEIVER",
|
||||
"HAMMER­POINT ROUNDS",
|
||||
"GRAFFITI MOD",
|
||||
"QUICKDRAW HOLSTER"
|
||||
"QUICKDRAW HOLSTER",
|
||||
"SHATTER CAPS",
|
||||
"DEADEYE'S TEMPO"
|
||||
];
|
||||
var hopup_level = [3, 3, 4, 4, 3, 3, 4, 3, 1, 3];
|
||||
var hopup_level = [3, 3, 4, 4, 3, 3, 4, 3, 1, 3, 3, 3];
|
||||
|
||||
var mag_txt = ["EXTENDED LIGHT MAGAZINE", "EXTENDED HEAVY MAGAZINE", "EXTENDED SNIPER MAGAZINE", "EXTENDED ENERGY MAGAZINE"];
|
||||
var ammo_txt = ["LIGHT ROUNDS", "HEAVY ROUNDS", "SNIPER AMMO", "ENERGY AMMO", "SHOTGUN SHELLS"];
|
||||
var ammo_txt = ["LIGHT ROUNDS", "HEAVY ROUNDS", "SNIPER AMMO", "ENERGY AMMO", "SHOTGUN SHELLS", "ARROWS"];
|
||||
var weapons = [];
|
||||
|
||||
var weapon1 = -1;
|
||||
@ -125,31 +132,32 @@ var weapon2 = -1;
|
||||
// Longest - KRABER
|
||||
// Tallest - RE-45
|
||||
|
||||
weapons.push({name:"VOLT SMG", barrel:true, bolt:false, mag:3, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], ammo:3, filename:"volt.png"});
|
||||
weapons.push({name:"R-301 CARBINE", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], ammo:0, filename:"r301.png"});
|
||||
weapons.push({name:"VK-47 FLATLINE", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], ammo:1, filename:"flatline.png"});
|
||||
weapons.push({name:"WINGMAN", barrel:false, bolt:false, mag:1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[2, 9], ammo:1, filename:"wingman.png"});
|
||||
weapons.push({name:"M600 SPITFIRE", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:1, filename:"spitfire.png"});
|
||||
weapons.push({name:"L-STAR EMG", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:3, filename:"lstar.png"});
|
||||
weapons.push({name:"HAVOC RIFLE", barrel:false, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], ammo:3, filename:"havoc.png"});
|
||||
weapons.push({name:"ALTERNATOR SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], ammo:0, filename:"alternator.png"});
|
||||
weapons.push({name:"DEVOTION LMG", barrel:true, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], ammo:3, filename:"devotion.png"});
|
||||
weapons.push({name:"RE-45 AUTO", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[9], ammo:0, filename:"re45.png"});
|
||||
weapons.push({name:"R-99 SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], ammo:0, filename:"r99.png"});
|
||||
// weapons.push({name:"PROWLER BURST PDW", barrel:false, bolt:false, mag:1, optic:[], stock_standard:true, stock_sniper:false, hopup:[], ammo:2, filename:"prowler.png"});
|
||||
weapons.push({name:"HEMLOK BURST AR", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:1, filename:"hemlok.png"});
|
||||
weapons.push({name:"30-30 REPEATER", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:1, filename:"3030.png"});
|
||||
weapons.push({name:"G7 SCOUT", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:0, filename:"g7.png"});
|
||||
//weapons.push({name:"PEACEKEEPER", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], ammo:4, filename:"peacekeeper.png"});
|
||||
weapons.push({name:"EVA-8 AUTO", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], ammo:4, filename:"eva8.png"});
|
||||
weapons.push({name:"MASTIFF SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], ammo:4, filename:"mastiff.png"});
|
||||
weapons.push({name:"TRIPLE TAKE", barrel:false, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], ammo:2, filename:"tripletake.png"});
|
||||
weapons.push({name:"LONGBOW DMR", barrel:true, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[2], ammo:2, filename:"longbow.png"});
|
||||
weapons.push({name:"SENTINEL", barrel:false, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], ammo:2, filename:"sentinel.png"});
|
||||
weapons.push({name:"CHARGE RIFLE", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], ammo:2, filename:"chargerifle.png"});
|
||||
weapons.push({name:"P2020", barrel:false, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], ammo:0, filename:"p2020.png"});
|
||||
weapons.push({name:"MOZAMBIQUE SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], ammo:4, filename:"mozambique.png"});
|
||||
//weapons.push({name:"KRABER .50-CAL SNIPER", barrel:false, bolt:true, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:false, hopup:[], ammo:2, filename:"kraber.png"});
|
||||
weapons.push({name:"VOLT SMG", barrel:true, bolt:false, mag:3, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:3, filename:"volt.png"});
|
||||
weapons.push({name:"R-301 CARBINE", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], multi_hopup:false, ammo:0, filename:"r301.png"});
|
||||
weapons.push({name:"VK-47 FLATLINE", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], multi_hopup:false, ammo:1, filename:"flatline.png"});
|
||||
weapons.push({name:"HAVOC RIFLE", barrel:false, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], multi_hopup:false, ammo:3, filename:"havoc.png"});
|
||||
weapons.push({name:"M600 SPITFIRE", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"spitfire.png"});
|
||||
weapons.push({name:"L-STAR EMG", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:3, filename:"lstar.png"});
|
||||
// weapons.push({name:"PROWLER BURST PDW", barrel:false, bolt:false, mag:1, optic:[], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:2, filename:"prowler.png"});
|
||||
weapons.push({name:"ALTERNATOR SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"alternator.png"});
|
||||
weapons.push({name:"DEVOTION LMG", barrel:true, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], multi_hopup:false, ammo:3, filename:"devotion.png"});
|
||||
weapons.push({name:"BOCEK COMPOUND BOW", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5], stock_standard:false, stock_sniper:false, hopup:[10, 11], multi_hopup:true, ammo:5, filename:"bocek.png"});
|
||||
//weapons.push({name:"TRIPLE TAKE", barrel:false, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:3, filename:"tripletake.png"});
|
||||
weapons.push({name:"30-30 REPEATER", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[10], multi_hopup:false, ammo:1, filename:"3030.png"});
|
||||
weapons.push({name:"G7 SCOUT", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"g7.png"});
|
||||
weapons.push({name:"WINGMAN", barrel:false, bolt:false, mag:1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[9], multi_hopup:false, ammo:1, filename:"wingman.png"});
|
||||
weapons.push({name:"HEMLOK BURST AR", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"hemlok.png"});
|
||||
weapons.push({name:"RE-45 AUTO", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[9], multi_hopup:false, ammo:0, filename:"re45.png"});
|
||||
weapons.push({name:"R-99 SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"r99.png"});
|
||||
weapons.push({name:"LONGBOW DMR", barrel:true, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:2, filename:"longbow.png"});
|
||||
weapons.push({name:"SENTINEL", barrel:false, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[11], multi_hopup:false, ammo:2, filename:"sentinel.png"});
|
||||
weapons.push({name:"CHARGE RIFLE", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:2, filename:"chargerifle.png"});
|
||||
weapons.push({name:"PEACEKEEPER", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"peacekeeper.png"});
|
||||
weapons.push({name:"EVA-8 AUTO", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"eva8.png"});
|
||||
weapons.push({name:"MASTIFF SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"mastiff.png"});
|
||||
weapons.push({name:"P2020", barrel:false, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"p2020.png"});
|
||||
weapons.push({name:"MOZAMBIQUE SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"mozambique.png"});
|
||||
//weapons.push({name:"KRABER .50-CAL SNIPER", barrel:false, bolt:true, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:2, filename:"kraber.png"});
|
||||
|
||||
function zeroPad(nr,base)
|
||||
{
|
||||
@ -367,8 +375,27 @@ function randomize_attachments_single(weapon)
|
||||
result.push("");
|
||||
}
|
||||
}
|
||||
|
||||
if (weapon.hopup.length != 0)
|
||||
|
||||
if (weapon.multi_hopup)
|
||||
{
|
||||
for (var i = 0; i < weapon.hopup.length; ++i)
|
||||
{
|
||||
pick = Math.floor(Math.random() * 2);
|
||||
if (pick == 0)
|
||||
{
|
||||
result.push(hopup_level[weapon.hopup[i]]);
|
||||
result.push("images/attachments/hopups/" + zeroPad(weapon.hopup[i], 10) + ".png");
|
||||
result.push(hopup_txt[weapon.hopup[i]]);
|
||||
}
|
||||
else
|
||||
{
|
||||
result.push(0);
|
||||
result.push("images/attachments/hopups/" + zeroPad(weapon.hopup[i], 10) + ".png");
|
||||
result.push("");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (weapon.hopup.length != 0)
|
||||
{
|
||||
|
||||