Desktop Goose ResourceHub

Logo

Mods and file packs for Desktop Goose

View the Project on GitHub DesktopGooseUnofficial/ResourceHub

Honcker download count badge

A very simple mod that allows you to make your goose honk at will with the F key

Downloads

Honcker

Requirements

DesktopGoose v0.3

Installation guide

First, make sure that you are running Desktop Goose 0.3/0.31 on Windows. The macOS version does not support mods.

  1. If you have the Goose running, close him first.
  2. Go to the Mods folder in the Assets folder.
  3. Create a folder with the name Honcker.
  4. Place the Honcker.dll file inside the Honcker folder.
  5. Go back to the Desktop Goose folder.
  6. If you haven’t already, open the config.ini file and change EnableMods=False to EnableMods=True, then save it.
  7. Open the Goose again and enjoy!!

Need help? You can ask for support in the #goose-modding channel on the Discord server.

Source code

 public class ModMain : IMod
    {

        [DllImport("user32.dll")]
        public static extern short GetAsyncKeyState(Keys vKey);
        public void Init()
        {
            InjectionPoints.PreTickEvent += PreTick;
        }        
        public void PreTick(GooseEntity goose) {
            bool pressingHonk = false;
            if (GetAsyncKeyState(Keys.F) != 0)
            {
                if (!pressingHonk)
                {
                    API.Goose.playHonckSound();
                    pressingHonk = true;
                }
            }
            else
            {
                pressingHonk = false;
            }
        }
    }