AtomicStudio-Chat_Integration icon

Chat Integration

Let your Twitch chat do stuff in-game!

Last updated 2 days ago
Total downloads 20
Total rating 1 
Categories Misc Client-Side
Dependency string AtomicStudio-Chat_Integration-0.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2304 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2304

README

Chat Integration

Connect your twitch chat to your game!

IMPORTANT: THIS REQUIRES YOU TO EDIT THE CONFIG!! USE MODCONFIG IF YOU DON'T KNOW HOW. THIS DOES NOT SUPPORT YOUTUBE, MAKE A PR IF YOU FIGURE OUT HOW!!

Default Features:

  1. Fling Ball: Flings the ball into the air.
  2. Do Nothing: Your chat has spared you.
  3. Fling Player: Flings you high into the air.
  4. Respawn Player: Respawns you.
  5. Spawn 10 stracked golf carts: Self-explanitory.
  6. Reset Ball: Gives you a penalty point and sets the ball at your feet.
  7. Give 5 Strokes: Gives you 5 penalty points.
  8. Dance for 5 seconds: Exit golf cart and do the victory dance, you cannot move.
  9. 10s of inverted movements: You move weirdly and inverted.
  10. 2x Slower for 10 seconds: You pretty much cannot move.

This is early testing and features could change or new features could be added

How to make an addon (Mod Developers):

Making an addon is pretty simple to register.

  1. Reference the latest .dll into your project
  2. Create a new ChatAction

Example Chat Action:

var givestrokes = new ChatAction
{
    name = "Give 5 Strokes",
    onChoose = () =>
    {
        for (int i = 0; i < 5; i++)
        {
            CourseManager.AddPenaltyStroke(GameManager.LocalPlayerAsGolfer, false);
        }
    }
};
  1. Register the action: ChatAPI.instance.RegisterNewAction(givestrokes);
  2. Test in-game!

If you want more examples, go to the GitHub and find the Actions folder in the src tab. DefaultActions.cs has examples.

Bugs, Feedback, Feature Requests:

I am very welcome to new features and bugs. You can do any of the following:

  • Go to the SBG Modding server and ping @atomictyler
  • Go to the SBG Modding server, go to #mod-releases and search for Chat Integration
  • DM @atomictyler, don't just DM "hi" or "can I give you a suggestion", say it straight away.