#library "moodsounds"
#include "zcommon.acs"

script "MoodToggle" (void)
	{
	SetResultValue(GetCVar("MoodToggle"));
	}


Script "HumPlayer" ENTER
	{
	//plays and loops ambient rumble
		if (acs_namedexecutewithresult("MoodToggle",1))
		{
			ambientsound ("mood/constant", 7);
			delay (225);
			restart;
		}
		
	//or, if it's been disabled...
		else
		{
			delay(35);
			restart;
		}
	}
	
	
Script "HumVolume" OPEN
	{		
	int playhealth = GetActorProperty(0, APROP_Health);
	
		if (playhealth > 170)
			{
			soundvolume(0,0,10);
			}
		
		delay(15);
		restart;
	}
			
		