Back To Top
  • Hey Guest,
    If you are interested in ghosting, the Ghosting Awards from February 2025 all the way up to June 2025 have just been announced:

    Statement regarding the delays

    Ghosting Awards for February 2025

    Ghosting Awards for March 2025

    Ghosting Awards for April 2025

    Ghosting Awards for May 2025

    Ghosting Awards for June 2025
    Dismiss Notice
  • Custom Heads

    Discussion in 'Third Party Scripting & Development' started by Calculus, Jan 19, 2020.

    Tags:
    ?

    Do you want more?

    1. YES!

      75.3%
    2. no.

      9.1%
    3. sure

      15.6%
    1. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      This thread was made for custom, easily accessible heads. This thread is NOT exclusive to my ideas, share your ideas below and it may or may not be featured!

      Options
      Code:
      GameSettings.user.cosmetics.head = {
          classname: "cap",
          script: GameInventoryManager && GameInventoryManager.register("cap", class e extends GameInventoryManager.HeadClass {
              constructor() {
                  super(),
                  this.drawAngle = 0,
                  this.createVersion()
              }
              versions = {};
              getVersions() {return this.versions}
              cache(e) {
                  var r = this.versions[this.versionName];
                  r.dirty = !1;
                  var a = 115*(e=Math.max(e,1))*.17,s=112*e*.17,
                  u = r.canvas;u.width=a,
                  u.height=s;
                  var v=u.getContext("2d"),
                  l=.17*e;
                  v.save(),
                  v.scale(l,l),
                  v.fillStyle = "#ffffff00";
                  v.lineCap = "round";
                  v.lineWidth = 11.5;
                  v.beginPath(),
                  v.arc(44, 50.5, 29.5, 0, 2 * Math.PI),
                  v.moveTo(15,54),
                  v.lineTo(100, 38.5),
                  v.fill(),
                  v.stroke()
              }
              getBaseWidth=function(){return 115}
              getBaseHeight=function(){return 112}
              getDrawOffsetX=function(){return 2.2}
              getDrawOffsetY=function(){return 1}
              getScale=function(){return .17}
          })
      }
      Code:
      GameSettings.user.cosmetics.head = {
          classname: "pumpkin",
          script: GameInventoryManager.register("pumpkin", class e extends GameInventoryManager.HeadClass {
              img = new Image(62, 56);
              versions = {};
              constructor() {
                  super(),
                  this.createVersion(),
                  this.img.onload = this.cache.bind(this, this.getScale()),
                  this.img.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XPcN0xln0sO1jSTjrlEpwwxL46HCsrUQ/o2X7mIP9jwSnK7IKKiyDX34z1eS7tXhiCmQ9OHmImiAbD8AD3wf1b+C6PHta/R6rTzLKaRTvGmROyMfVMQVCEO4itGgY9i2Of+szIATSGtgrioqkS/R8gI+Op2l0huAAAAABJRU5ErkJggg=="
              }
              getVersions() { return this.versions }
              cache(e) {
                  let r = this.versions[this.versionName];
                  r.dirty = !1;
                  let a = 115 * (e = Math.max(e, 1)) * .17, s = 112 * e * .17,
                  u = r.canvas;
                  u.width = a,
                  u.height = s;
                  let v = u.getContext("2d"),
                  l = .31 * e;
                  v.scale(l, l),
                  v.drawImage(this.img, 0, 0);
              }
              getBaseWidth() { return 115 }
              getBaseHeight() { return 112 }
              getDrawOffsetX() { return -3.5 }
              getDrawOffsetY() { return -1.5 }
              getScale() { return .17 }
          })
      }
      Code:
      GameSettings.user.cosmetics.head = {
          classname: "hat",
          script: GameInventoryManager.register("hat", class e extends GameInventoryManager.HeadClass {
              versions = {}
              constructor() {
                  super(),
                  this.createVersion()
              }
              getVersions() { return this.versions }
              cache(e) {
                  let r = this.versions[this.versionName];
                  r.dirty = !1;
                  let a = 115 * (e = Math.max(e, 1)) * .17, s = 112 * e * .17,
                  u = r.canvas;
                  u.width = a,
                  u.height = s;
                  let v = u.getContext("2d"),
                  l = .17 * e;
                  v.scale(l, l),
                  v.lineCap = "round";
                  v.lineWidth = 11.5;
                  v.beginPath(),
                  v.arc(70, 75, 29.5, 0, 2 * Math.PI),
                  v.moveTo(20, 70),
                  v.lineTo(45, 65),
                  v.moveTo(87, 55),
                  v.lineTo(109, 49),
                  v.stroke(),
                  v.fillStyle = "#000000",
                  v.lineCap = "square"
                  v.beginPath(),
                  v.moveTo(40, 60),
                  v.lineTo(21, 21),
                  v.lineTo(89, 7),
                  v.lineTo(90, 50),
                  v.closePath(),
                  v.fill(),
                  v.stroke()
              }
              getBaseWidth() { return 115 }
              getBaseHeight() { return 112 }
              getDrawOffsetX() { return -2.5 }
              getDrawOffsetY() { return -3.5 }
              getScale() { return .17 }
          })
      }
      Enjoy!
       
      Last edited: Jun 17, 2023
      Blank_Guy, Azgr00, EthMan and 22 others like this.
    2. Terilune

      Terilune Active Member Official Author

      What?
      Awesome
       
      Azgr00, EthMan, NotSoSure and 3 others like this.
    3. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: a new edition of the Leprechaun Hat has arrived.
      upload_2020-1-18_22-24-22.png

      Enjoy.
       
      EthMan, temptrick, NotSoSure and 5 others like this.
    4. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: a new head has been added.
      upload_2020-1-18_23-28-10.png

      Enjoy.
       
      EthMan, FIREBEATS, Blacktux2 and 4 others like this.
    5. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: a new edition of the Leprechaun Hat has been added.
      upload_2020-1-19_10-18-7.png

      Enjoy.
       
      Azgr00, EthMan, FIREBEATS and 4 others like this.
    6. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      mR..A Char Max007x Eric Stig Brett @sparklemotion(rip)
      If any of you have the script for the pumpkin head from 2014 it would be greatly appreciated if you could allow me to obtain it.
       
      Last edited: Jan 20, 2020
      FIREBEATS, Blacktux2, AIice and 2 others like this.
    7. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: A new edition of the Snowman has been added.
      upload_2020-1-19_10-41-20.png

      Enjoy :)
       
      FIREBEATS, Blacktux2, AIice and 2 others like this.
    8. Polarized

      Polarized Well-Known Member Official Author

      did you find a way to keep them permanently?
       
      Calculus, AIice and Calculus like this.
    9. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      not yet. I will be sure to let you know when I do.
       
    10. Polarized

      Polarized Well-Known Member Official Author

      k thanks.
       
      Calculus, AIice and Calculus like this.
    11. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: Working on a face for the Leprechaun Hat
      upload_2020-1-19_11-6-2.png

      This is unreleased for now, I will keep you posted.
       
    12. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: New edition of the Snowman Has been added
      upload_2020-1-19_12-55-42.png

      Enjoy.
       
      Blacktux2, AIice, GoodraFRHD and 2 others like this.
    13. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: A new head has been added.
      upload_2020-1-19_13-56-26.png

      Enjoy.
       
    14. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Alright, I found a way. However, unfortunately you must own the head, then all you must do is replace the original link with my custom pastebin link.
      In this case you would not need Tampermonkey. This is a quality of life improvement.
      https://i.gyazo.com/25401fcb7a53c44935ed875242dd4605.mp4
       
    15. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Update: I have just discovered how to make this permanent. However, In order to accomplish this, you must own at least one of the following Items.
      Bomb Head
      Goalie Mask
      Leprechaun Hat
      Lovestruck Beanie
      Zombie Head
      Robot Head
      Poop Emoji
      Santa Hat
      Reindeer Hat
      Snowman
      Elf Hat
      Emma Hatter
      Clown Head
      Shark Head
      Devil Head

      Please complete the steps as follows.

      Obtain the JS link for the head of your choice.
      To do this, type "GameSettings.user.cosmetics.head.script"
      Copy the link and proceed to Requestly extension.
      Redirect the link with any of the custom links above.

      Enjoy :)
       
    16. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Correction, It's a little more complicated than that, if you would like it permanent, please pm me.
       
    17. Ultraviolet

      Ultraviolet Well-Known Member Official Author

      Awarded Medals
      I don't think anyone has the foggiest idea what you're on about. It's literally a whole thread of you talking to yourself
       
    18. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      Yes, pretty sad, but as soon as people realize the true potential of this, maybe they will pay a little more attention, and this is kind of just a place I am using for safe keeping :p
       
      Blacktux2, AIice, GoodraFRHD and 3 others like this.
    19. BenTheUnknown

      BenTheUnknown Active Member Official Author

      it would be cooler if it was a permanent change and not something you had to do every time you reloaded
       
      Calculus, AIice and Calculus like this.
    20. Calculus

      Calculus Community Developer Staff Member Administrator

      Awarded Medals
      there is a permanent method above
       
      Blacktux2, AIice and GoodraFRHD like this.

    Share This Page