Skip to content

A fork of OpenJK for the JKA Speedrunning Twitch Community

License

Notifications You must be signed in to change notification settings

michaeljoelphillips/jka-crowd-control

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JKA Crowd Control

An OpenJK build for the JKA speedrunning community that adds support for in-game Twitch chat.

Disclaimer

This build will allow users in your Twitch chat to execute commands against the JKA client console. This is potentially dangerous and you should first understand the risks before using.

Connecting to Twitch

Connection information for the IRC server is stored and read as cvars. The cvars for connecting are as follows:

  cl_ircHost
  cl_ircPort
  cl_ircUsername
  cl_ircPassword

If custom cvars are not provided, the client will connect to "irc.chat.twitch.tv" as an anonymous user.

If the connection fails, the client must be restarted.

Twitch User Commands

Once connected to a channel, users in Twitch chat can can invoke console commands with the ! prefix:

!r_showtris 1
!saber sith_sword

All commands are in the exact format as they are accepted in the game console.

The following commands are always blocked:

say
join
kill
devmap
cl_irc*

Any variables that are changed will be restored to the original value after 20 seconds.

Custom Commands

say

Sends a message to the current channel:

say Hey, what's going on?

join

Joins a channel on the IRC server:

join #your_solution

block/unblock

Blocks/unblocks a command from being executed by chat:

block spawn
unblock spawn

Custom Variables

cl_ircShowChat

Draws Twitch chat within the game client:

cl_ircShowChat 1
cl_ircShowChat 0

Credits

  • OpenJK for keeping the OSS release of this game alive
  • YS for the teaser video, testing, and live-streaming the debut
  • Sphere for Speed-Academy
  • The JKA Speedrunning community for being awesome

About

A fork of OpenJK for the JKA Speedrunning Twitch Community

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 55.8%
  • C 43.8%
  • CMake 0.4%
  • Objective-C 0.0%
  • Shell 0.0%
  • Batchfile 0.0%