Version 0.7, though the mod might also work on other versions.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are allowed to use the assets in this file in mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.1
Due to me previously overlooking the fact that TES3MP always sends out StreamMusic script calls to all clients simultaneously, this mod had to be thoroughly redesigned and repurposed. It's now apparent that this mod is not fit to use on large public servers where players tend to wander off to do their own thing, because due to how the engine handles the StreamMusic function, the game would always stream combat music to all players whenever any single player gets into a fight. However, it's still fit to use in coop games where players stick together and do joint activities. Because of these considerations, the mod has been renamed to "Enable Combat Music for TES3MP Coop".
Added the spell ability "CombatMusicSpell", which can be assigned to any player character via the console. The player character who is in possession of this spell ability will control combat music playback for all clients across the server. Only one player should possess the spell at any given time, otherwise the StreamMusic script calls will overlap.
Fixed a bug where the combat music would fail to play if the combat music instigating action occured right after the last combat music playback session had come to an end.
Version 1.0
Initial release
After installing the mod, use the console command "player->AddSpell CombatMusicSpell" (without the quotations) on whichever client you want to control combat music playback for the entire server. Only one player character should possess the spell at any time, otherwise the music streaming script calls will overlap and cause an unpleasant listening experience for everyone.
Due to scripting restrictions, this mod's conditions for when combat music starts and stops are different to the original game.
With this mod, combat music starts whenever the player character who possesses the aforementioned spell ability: - swings their fist or swings/fires/throws a weapon - attempts to cast a destruction spell - is either hit or missed by a melee weapon attack - is hit by a destruction spell effect - takes falling/drowning/lava damage.
Combat music stops after all of the above events fail to occur for 7 seconds.
The combat music tracks are selected at random, and the same track is never played twice in a row.
As with all plugins running on TES3MP games, server permission is required.