Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !function() {
- // When a player is killed, tell him to go to gulag!
- SWAM.on("playerKilled", function(data, dead, killer){
- if (killer.id == game.myID)
- {
- Network.sendSay("Gulag for " + dead.name);
- }
- });
- SWAM.on("playerKilled", function(data, dead, killer){
- if (dead.id == game.myID)
- {
- Network.sendChat(killer.name + " I have a very particular set of skills. Skills I have acquired over a very long career. Skills that make me a nightmare for people like you. I will look for you, I will find you and I will kill you. ");
- }
- });
- let lastPhraseTime = 0;
- SWAM.on("playerImpacted", function(data)
- {
- let playerId = data.players[0].id;
- // If it's not me, quit
- if (playerId != game.myID)
- return;
- let now = new Date().getTime();
- // If the time between the last message
- // and now is less than 3 seconds, we exit
- // to avoid being throttled by the server
- if (now - lastPhraseTime < 3000)
- return;
- let phrases = null;
- let player = Players.get(playerId);
- lastPhraseTime = now;
- if (player.health > 0)
- {
- phrases = ["oof", "ouch", "owie"];
- }
- else return;
- // choose a random phrase
- let index = Tools.randInt(0, phrases.length - 1);
- // and send that phrase as a bubble
- Network.sendSay(phrases[index]);
- });
- SWAM.registerExtension({
- name: "Gulag bubbles 3.2: this has gone too far!",
- id: "gu1ag4uandm3",
- description: "use this extension to get people to hate you",
- author: "connormce10",
- version: "3.2"
- });
- }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement