Chat Integration
Let your Twitch chat do stuff in-game!
模組介紹 作者原文
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.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: