1. Hey Guest, the results for the 11th edition of the Free Rider HD Awards were just announced!

    Click here to check out the winners!
    Dismiss Notice

Custom Heads

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

?

Do you want more?

  1. YES!

    75.0%
  2. no.

    9.2%
  3. sure

    15.8%
  1. Moon_Rider

    Moon_Rider Active Member Official Author

    and Could you add ninja head?
     
    a_drain likes this.
  2. Moon_Rider

    Moon_Rider Active Member Official Author

  3. The_Trax_Man

    The_Trax_Man Well-Known Member Official Author

    Can you add Funky Kong (Donkey Kong will also work ) as headgear? (Mario kart Wii)
     
    Poltergeist likes this.
  4. The_Trax_Man

    The_Trax_Man Well-Known Member Official Author

    Nacho Libre mask pls
     
    Poltergeist likes this.
  5. Calculus

    Calculus Community Developer Staff Member Administrator Ghost Moderator

    Awarded Medals
    Update:

    I've replaced all heads with the Canvas Rider Cap.

    upload_2020-10-15_14-8-38.png
     
    FIREBEATS likes this.
  6. Calculus

    Calculus Community Developer Staff Member Administrator Ghost Moderator

    Awarded Medals
    Update:

    I added the top hat from BHR. This will likely be the last addition for a while.

    upload_2020-10-15_21-20-43.png
     
    FIREBEATS likes this.
  7. The_Trax_Man

    The_Trax_Man Well-Known Member Official Author

    please make a traditional Mexican sombrero. i think that would be a good idea
     
  8. Calculus

    Calculus Community Developer Staff Member Administrator Ghost Moderator

    Awarded Medals
    The pumpkin head has returned :eek:

    upload_2020-10-23_18-19-23.png
     
    gun, dantexpress and Pickle2332 like this.
  9. Calculus

    Calculus Community Developer Staff Member Administrator Ghost Moderator

    Awarded Medals
    Experimenting got me this. It's hard to see, but the pumpkin shivers.

    Code:
    GameSettings.user.cosmetics.head = {
        classname: "pumpkin",
        script: GameInventoryManager.register("pumpkin", class e extends GameInventoryManager.HeadClass {
            constructor() {
                super(),
                this.versions = {},
                this.createVersion(),
                this.img = new Image(90, 90),
                this.img.src = "https://imgur.com/UaBzAeL.png"
            }
            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=.31*e;
                v.scale(l,l),
                this.img.onload = () => {
                    var travelDistance = 1;
                    setInterval(() => {
                        v.clearRect(0, 0, u.width, u.height);
                        v.transform(1, 0, 0, 1, travelDistance, 0);
                        v.drawImage(this.img, 0, 0);
                        travelDistance *= -1;
                    });
                }
            }
            setDirty(){
                this.versions[this.versionName].dirty=!0
            }
            getBaseWidth(){
                return 115
            }
            getBaseHeight(){
                return 112
            }
            getDrawOffsetX(){
                return -3.5
            }
            getDrawOffsetY(){
                return -1.5
            }
            getScale(){
                return .17
            }
        }),
        type: "1"
    }
    
     
    FIREBEATS likes this.
  10. The_Trax_Man

    The_Trax_Man Well-Known Member Official Author

    Can we have a nacho libre mask
     
  11. G-raffe

    G-raffe your ad here Elite Author Team Balloon Official Author

    Awarded Medals
    Could you make a really tall giraffe hat?

    Thanks.
     
    FIREBEATS likes this.
  12. FIREBEATS

    FIREBEATS FRHD Member of 2020 Team Helicopter Official Author

    Maybe
     
  13. FIREBEATS

    FIREBEATS FRHD Member of 2020 Team Helicopter Official Author

    can you add a Darth Vader Hat plz
     

Share This Page