Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002744Zandronum[All Projects] Suggestionpublic2016-05-30 12:362024-03-01 06:03
ReporterTribeam3rd 
Assigned To 
PrioritylowSeverityminorReproducibilityhave not tried
StatusconfirmedResolutionbackport later 
PlatformOSOS Version
Product Version3.0-beta 
Target VersionFixed in Version 
Summary0002744: [Request] Backport SetMusicVolume
Description'http://zdoom.org/wiki/SetMusicVolume [^]'

Currently my survival mod uses consolecommand to achieve a music fade effect:

script "CL_ChangeMusic" (int songnum, int fadetime) clientside
{
   int v = GetCVar("SND_MusicVolume");
   for(int i = v; i > 0; i-=fadetime)
   {
      ConsoleCommand(strParam(s:"SND_MusicVolume ", f:i));
      delay(1);
   }
   switch(songnum)
   {
      case 0: SetMusic("Boss", 0); break;
      case 1: SetMusic("MAP01", 0); break;
      case 2: SetMusic("MAP02", 0); break;
   }
   ConsoleCommand(strParam(s:"SND_MusicVolume ", f:v));
}

It'd be a lot better if I didn't do it like this, modifying a user's music volume config directly is just a terrible idea heh...
Additional InformationAny reason to not use consolecommand is a good reason in my book

Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: Fused Tiger slowdensity Combinebobnt
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2016-05-30 12:36 Tribeam3rd New Issue
2024-03-01 06:03 Ru5tK1ng Status new => confirmed
2024-03-01 06:03 Ru5tK1ng Resolution open => backport later






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker