Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/ss_map.js
Views: 327
// This Is A File Containing UnCompressed / Obfuscated Functions from ShellShockers and the function location in newer versions with Obfuscated funcitons1// Found By : TDStuart23// Add Player4// Obfuscated :5function Ci(e) {6e.id == l && (S = e.id);7var t = new ht(e,gr);8t.id == l && (Pr = t,9(Er = t).ws = ws,10Li()),11t.playing || t.actor.removeFromPlay(),12Sr[e.id] = t,13Ii()14}15// UnObfuscated :16function addPlayer(playerData) {17var player = new Player(playerData);18if (player.id == meId) {19me = player;20me.ws = ws;21updateAmmoUi();22}23if (!player.playing) player.actor.removeFromPlay();24players[playerData.id] = player;25rebuildPlayerList();26}272829// Remove Player30// Obfuscated :31function Ri(e) {32var t = Sr[e];33e != l ? t && (t.actor.remove(),34delete Sr[e],35Ii()) : console.log("Tried to remove ME")36}37// UnObfuscated :38function removePlayer(playerId) {39var player = players[playerId];40if (playerId == meId) {41console.log("Tried to remove ME");42return;43}44if (player) {45player.actor.remove();46delete players[playerId];47rebuildPlayerList();48}49}505152// Rebuild Player List53// Obfuscated :54function Ii() { // Rebuild Player List55for (var e = [], t = 0; t < Sr.length; t++)56Sr[t] && e.push(t);57if (kr) {58var r = function() {59for (var e = [0, 0, 0], t = 0; t < playerLimit; t++) {60var r = Sr[t];61r && (e[r.team] += r.score)62}63var i = 0;64return e[1] > e[2] ? i = 1 : e[2] > e[1] && (i = 2),65{66score: e,67leader: i68}69}();70r.leader > 0 && (Oi = r.leader),71r.score[Oi] += 1e5,72e.sort((function(e, t) {73return Sr[t].score + r.score[Sr[t].team] - (Sr[e].score + r.score[Sr[e].team])74}75))76} else77e.sort((function(e, t) {78return Sr[t].score - Sr[e].score79}80));81var i = document.getElementById("playerList").children;82for (t = 0; t < e.length; t++) {83var n = Sr[e[t]]84, o = i[t]85, a = o.children[0]86, s = a.children[0]87, y = a.children[1]88, c = o.children[1];89if (s.classList.add("playerSlot--name"),90y.classList.add("playerSlot--score"),91c.classList.add("playerSlot--icons"),92o.style.display = "block",93s.innerText = n.name,94n.id != l) {95o.addEventListener("click", function(e, t) {96return function() {97var r = {98playerId: e,99uniqueId: t,100isGameOwner: A,101muted: Sr[e].muted,102playerName: Sr[e].name,103muteFunc: function() {104Di(this.playerId, this.uniqueId)105},106bootFunc: function() {107wi(this.playerId, this.uniqueId)108}109};110vueApp.showPlayerActionsPopup(r)111}112}(n.id, n.uniqueId), !1),113o.style.pointerEvents = "all",114o.style.cursor = "pointer"115}116y.innerText = n.score,117a.classList.add("playerSlot--name-score");118let r = "playerSlot--name-score"119, h = "playerSlot-player-is-me"120, u = "playerSlot-player-is-them";121n.id == l ? a.className = `${r} ${h} ${Ie.meClass[n.team]}` : a.className = `${r} ${u} ${Ie.themClass[n.team]}`,122c.innerText = "";123const d = document.createElement("i")124, p = document.createElement("i");125d.className = "fas fa-egg hidden",126p.className = "fas fa-ban hidden",127n.upgradeProductId && n.upgradeProductId > 0 && d.classList.remove("hidden"),128n.muted && p.classList.remove("hidden"),129c.appendChild(d),130c.appendChild(p)131}132for (; t < playerLimit; )133i[t].style.display = "none",134t++135}136// Unobfuscated :137function rebuildPlayerList() {138var playerIdxs = [];139for (var i = 0; i < players.length; i++) {140if (players[i]) {141playerIdxs.push(i);142}143}144if (gameType == GameType.teams) {145var teams = getTeamScores();146if (teams.leader > 0) lastLeadingTeam = teams.leader;147teams.score[lastLeadingTeam] += 1e5;148playerIdxs.sort(function(a, b) {149return players[b].score + teams.score[players[b].team] - (players[a].score + teams.score[players[a].team]);150});151} else {152playerIdxs.sort(function(a, b) {153return players[b].score - players[a].score;154});155}156var list = document.getElementById("playerList").children;157var i;158for (i = 0; i < playerIdxs.length; i++) {159var player = players[playerIdxs[i]];160list[i].style.display = "block";161list[i].children[0].innerText = player.name;162list[i].children[1].innerText = player.score;163if (players[playerIdxs[i]].id == meId) {164list[i].className = "thisPlayer";165list[i].style.background = teamColors.meBackground[player.team];166} else {167list[i].className = "otherPlayer";168list[i].style.background = teamColors.themBackground[player.team];169list[i].style.color = teamColors.text[player.team];170}171}172while (i < 18) {173list[i].style.display = "none";174i++;175}176}177178179