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
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304README
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:
- Fling Ball: Flings the ball into the air.
- Do Nothing: Your chat has spared you.
- Fling Player: Flings you high into the air.
- Respawn Player: Respawns you.
- Spawn 10 stracked golf carts: Self-explanitory.
- Reset Ball: Gives you a penalty point and sets the ball at your feet.
- Give 5 Strokes: Gives you 5 penalty points.
- Dance for 5 seconds: Exit golf cart and do the victory dance, you cannot move.
- 10s of inverted movements: You move weirdly and inverted.
- 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.
- Reference the latest .dll into your project
- 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);
}
}
};
- Register the action:
ChatAPI.instance.RegisterNewAction(givestrokes); - 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.