- added SetMusicVolume ACS function.

This commit is contained in:
Christoph Oelckers 2016-04-17 10:56:46 +02:00
parent 5e73cdc670
commit a1e8d83724

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),
@ -6088,6 +6091,10 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
} }
break; break;
case ACSF_SetMusicVolume:
I_SetMusicVolume(ACSToFloat(args[0]));
break;
default: default:
break; break;
} }