#library "ANGELACS"
#include "zcommon.acs"

//The CVAR values
int	AAHealthbonus;
int AA_AnnoyingCherubSpawner;
int	AA_ClassicVirginSpawner;

int	AA_DropOff;

int AA_Puckishspawner;
int AA_Rusalkaspawner;
int AA_AphroditeSpawner;
int AA_JaySpawner;
int AA_ForgottenMaidenSpawner;
int AA_SeraphClothesSpawner;
int AA_Petrify;
int AA_Fanservice;

int AA_CherubShutUp;
int AA_DollShutUp;
int AA_SpawnFloat;
int AA_SnowballShutUp;
int AA_CardinalShutUp;
int AA_PuttoShutUp;
int AA_KissShutUp;
int AA_IrisShutUp;
int AA_AuthorityShutUp;
int AA_OphanimShutUp;
int AA_PrincipalityShutUp;
int AA_JoyShutUp;
int AA_VirginShutUp;
int AA_DollmaykrShutUp;
int AA_SeraphShutUp;
int AA_CqueenShutUp;

int AA_SmolDollSpawner;
int AA_FeatherSpawner;


script "AA_InitCVAR" ENTER
{
	AAHealthbonus				= GetCVar("AAHealthbonus");
	AA_AnnoyingCherubSpawner	= GetCVar("AA_AnnoyingCherubSpawner");
	AA_ClassicVirginSpawner		= GetCVar("AA_ClassicVirginSpawner");
	
	AA_DropOff					= GetCVar("AA_DropOff");
	
	AA_Puckishspawner			= GetCVar("AA_Puckishspawner");
	AA_Rusalkaspawner			= GetCVar("AA_Rusalkaspawner");
	AA_AphroditeSpawner			= GetCVar("AA_AphroditeSpawner");
	AA_JaySpawner				= GetCVar("AA_JaySpawner");
	AA_ForgottenMaidenSpawner	= GetCVar("AA_ForgottenMaidenSpawner");
	AA_SeraphClothesSpawner		= GetCVar("AA_SeraphClothesSpawner");
	AA_Petrify					= GetCVar("AA_Petrify");
	AA_Fanservice				= GetCVar("AA_Fanservice");

	AA_CherubShutUp				= GetCVar("AA_CherubShutUp");
	AA_DollShutUp				= GetCVar("AA_DollShutUp");
	AA_SpawnFloat				= GetCVar("AA_SpawnFloat");
	AA_SnowballShutUp			= GetCVar("AA_SnowballShutUp");
	AA_CardinalShutUp			= GetCVar("AA_CardinalShutUp");
	AA_PuttoShutUp				= GetCVar("AA_PuttoShutUp");
	AA_KissShutUp				= GetCVar("AA_KissShutUp");
	AA_IrisShutUp				= GetCVar("AA_IrisShutUp");
	AA_AuthorityShutUp			= GetCVar("AA_AuthorityShutUp");
	AA_OphanimShutUp			= GetCVar("AA_OphanimShutUp");
	AA_PrincipalityShutUp		= GetCVar("AA_PrincipalityShutUp");
	AA_JoyShutUp				= GetCVar("AA_JoyShutUp");
	AA_VirginShutUp				= GetCVar("AA_VirginShutUp");
	AA_DollmaykrShutUp			= GetCVar("AA_DollmaykrShutUp");
	AA_SeraphShutUp				= GetCVar("AA_SeraphShutUp");
	AA_CqueenShutUp				= GetCVar("AA_CqueenShutUp");

	AA_SmolDollSpawner			= GetCVar("AA_SmolDollSpawner");
	AA_FeatherSpawner			= GetCVar("AA_FeatherSpawner");
}


script 29731 ENTER //Summons the Destroying Angel on Taxing+ difficulty after 60 seconds.
{
    if (GameSkill() > 4) //3 is equal to SKILL_HARD
    {
        int x = GetActorX(0);
        int y = GetActorY(0);
        int z = GetActorZ(0);
        delay(2100); //35 in delay is equal to one second, this is 10 seconds.
        SpawnForced("AAGoddessSpawner",x,y,z, 7631); //Replace the string with whatever you want to spawn, 1337 can be replaced with whatever thingid you want.
		Print(s: "An Arch-Angel walks the earth.");
	}
}

script "VanillaHealthbonus" (void)
{
    SetResultValue(AAHealthbonus);
}

script "SmolDollSpawner" (void)
 {
	SetResultValue(AA_SmolDollSpawner);
 }
 
script "SpawnFloatSpawner" (void)
 {
	SetResultValue(AA_SpawnFloat);
 }

script "VirginSpawner" (void)
 {
    SetResultValue(AA_ClassicVirginSpawner);
 }

script "AnnoyingCherubSpawner" (void)
 {
    SetResultValue(AA_AnnoyingCherubSpawner);
 }
 
script "DropOff" (void)
 {
	SetResultValue(AA_DropOff);
 }
 
script "Petrify" (void)
 {
    SetResultValue(AA_Petrify);
 }
 
script "Fanservice" (void)
 {
    SetResultValue(AA_Fanservice);
 }

script "PuckishSpawner" (void)
 {
    SetResultValue(AA_PuckishSpawner);
 }
 
script "RusalkaSpawner" (void)
 {
    SetResultValue(AA_RusalkaSpawner);
 }
 
script "AphroditeSpawner" (void)
 {
    SetResultValue(AA_AphroditeSpawner);
 }
 
script "JaySpawner" (void)
 {
    SetResultValue(AA_JaySpawner);
 }
 
script "ForgottenMaidenSpawner" (void)
 {
    SetResultValue(AA_ForgottenMaidenSpawner);
 }
 
script "SeraphClothesSpawner" (void)
 {
    SetResultValue(AA_SeraphClothesSpawner);
 }
 
script "FeatherSpawner" (void)
 {
    SetResultValue(AA_FeatherSpawner);
 }
 
script "CherubShutUp" (void)
{ 	
    SetResultValue(AA_CherubShutUp);
}

script "DollShutUp" (void)
{ 	
    SetResultValue(AA_DollShutUp);
}

script "SnowballShutUp" (void)
{ 	
    SetResultValue(AA_SnowballShutUp);
}

script "CardinalShutUp" (void)
{ 	
    SetResultValue(AA_CardinalShutUp);
}

script "PuttoShutUp" (void)
{ 	
    SetResultValue(AA_PuttoShutUp);
}

script "KissShutUp" (void)
{ 	
    SetResultValue(AA_KissShutUp);
}

script "IrisShutUp" (void)
{ 	
    SetResultValue(AA_IrisShutUp);
}

script "AuthorityShutUp" (void)
{ 	
    SetResultValue(AA_AuthorityShutUp);
}

script "OphanimShutUp" (void)
{ 	
    SetResultValue(AA_OphanimShutUp);
}

script "PrincipalityShutUp" (void)
{ 	
    SetResultValue(AA_PrincipalityShutUp);
}

script "JoyShutUp" (void)
{ 	
    SetResultValue(AA_JoyShutUp);
}

script "VirginShutUp" (void)
{ 	
    SetResultValue(AA_VirginShutUp);
}

script "DollmaykrShutUp" (void)
{ 	
    SetResultValue(AA_JoyShutUp);
}

script "SeraphShutUp" (void)
{ 	
    SetResultValue(AA_JoyShutUp);
}

script "CqueenShutUp" (void)
{ 	
    SetResultValue(AA_JoyShutUp);
}
