Skip to content

SunRed/gmod-endroundmusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

TTT End Round Music

This addon was originally designed by Kurochi. I am just going to add a few features which might be useful in this addon.

Original addon in Steam Workshop: http://steamcommunity.com/sharedfiles/filedetails/?id=114582895

The title already reveals that the plugin is designed for the Trouble in Terrorist Town Gamemode by Badking. Music (or sounds) will be played on every round end and it can be configured in a .txt file from which sounds it should be chosen one randomly on traitor or innocent win or timeout.

Configuration

Sounds can be configured in data/sounds.txt. Kurochi made a nice picture what should explain how the configuration works: http://updates.x.gg/config%20music.png. The configuration of the widget can be done in lua/autorun/client/cl_endroundsounds.lua.

WIDGET_FADESPEED = 2			-- Time to take for fading in and out, in seconds, cannot be zero.
WIDGET_STAYTIME = 5				-- Time to keep widget displayed before fading out, in seconds
WIDGET_APPEARINTERVAL = 0.2		-- Time to wait before starting fade-in
WIDGET_THICKNESS = 1			-- Size of the font
WIDGET_ALIGN_X = ALIGN_LEFT		-- Horizontal alignment of widget; Possibilities: ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT
WIDGET_ALIGN_Y = ALIGN_TOP		-- Vertical alignment of widget; Possibilities: ALIGN_TOP, ALIGN_BOTTOM
WIDGET_X = 20					-- Horizontal position
WIDGET_Y = 20					-- Vertical position

Modifications

Features additionally built in by me:

  • The ability to turn off sounds being played on round end in TTT settings menu (F1)

Planned features:

  • Widget config in a text file instead of a lua file
  • Support for other gamemodes like Murder and Prop Hunt
  • Option for playing sounds / music directly from an URL
  • Control panel for easier configuration / changes

About

A TTT addon for playing music on round end.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages