
StreamIntegration
Allows your live stream chat to vote on modifiers/events to affect your game. YouTube and Twitch are supported. You can also use this mod without the Crowd Control by disabling it in the config.Details
Stream Integration
Allows your live stream chat to vote on modifiers/events to affect your game. YouTube and Twitch are supported. You can also use this mod without the Crowd Control by disabling it in the config.
How To Setup
Go into the config, Then select what platform you want to connect to, Then follow the steps the game tells you to do.
What The Mod Contains
- 39 Modifiers/Events, (with more to be added in the future)
- Crowd Control/Chat Control
- YouTube & Twitch Support (you can do both at the same time)
- Changes to the shop terminals
Adding Your Own Events (Not Required)
Requirement:
- ULTRAKILL Modding Knowledge (C#)
-
Add the .dll in the manual thunderstore download as a reference
-
Add a "BepInDependency" for "com.d1g1tal.streamint" (so it doesn't break)
-
Code your event(s)
-
Do "using StreamIntegration.CrowdControl"
-
Call "EventManager.RegisterEvent" to add an event into the mod, Heres an example: "EventManager.RegisterEvent("My Event", MyEventsClass.PlayEvent);"
-
You can also make your event(s) require 100% of the votes, Example: "EventManager.RegisterEvent("My Event", MyEventsClass.PlayEvent).RequireOneHundredPercent = true;"
-
If you want your event(s) to stop running after a bit then do "using StreamIntegration.Events"
-
Then just do "EffectEvents.eventToggled", this value goes false when voting restarts and true whenever an event is active
-
Heres an example on how to use this:
-
Ensure that you set "EffectEvents.eventToggled" to true when calling your event (if you don't it just won't run)
-
To add that type of event you would just do this:
-
Also make sure that the class with the events (if you use EffectEvents.eventToggled) is on your plugin object, Example: "(in your plugins class) gameObject.AddComponent<(class name with events here)>();"
-
If you want to restart the voting instead, again do "using StreamIntegration.CrowdControl" (in your events class if you have one) and then call "VotingPanel.Instance.Restart();"
Now build your mod, And load your mod with StreamIntegration installed and you are done.
If you want to test your events ingame then go into the config and go into Chat & Crowd Control, Crowd Control, then "Events (SPOILERS)"
Special Thanks
- truokyt - Made the mod icon
- Jace the ace - Additional playtesting
- PITR - For leaving his crowd control UI in the game