- added SetMusicVolume ACS function.

This commit is contained in:
Christoph Oelckers 2016-04-17 10:56:46 +02:00
parent 5e73cdc670
commit a1e8d83724
1 changed files with 7 additions and 0 deletions

View File

@ -81,6 +81,7 @@
#include "p_effect.h" #include "p_effect.h"
#include "r_utility.h" #include "r_utility.h"
#include "a_morph.h" #include "a_morph.h"
#include "i_music.h"
#include "g_shared/a_pickups.h" #include "g_shared/a_pickups.h"
@ -4500,6 +4501,8 @@ enum EACSFunctions
ACSF_SetSectorDamage, ACSF_SetSectorDamage,
ACSF_SetSectorTerrain, ACSF_SetSectorTerrain,
ACSF_SpawnParticle, ACSF_SpawnParticle,
ACSF_SetMusicVolume,
// 2 more left...
/* Zandronum's - these must be skipped when we reach 99! /* Zandronum's - these must be skipped when we reach 99!
-100:ResetMap(0), -100:ResetMap(0),
@ -6087,6 +6090,10 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
color, fullbright, startalpha/255., lifetime, size, fadestep/255.); color, fullbright, startalpha/255., lifetime, size, fadestep/255.);
} }
break; break;
case ACSF_SetMusicVolume:
I_SetMusicVolume(ACSToFloat(args[0]));
break;
default: default:
break; break;