void OnStart()
{
AddUseItemCallback("", "pipe_piece_1", "putPipe", "putpipe", true);
AddEntityCollideCallback("Player", "SpawnBrute", "SpawnBrute", true, 1);
}
void InteractPipe(string &in asEntity)
{
AddQuest("Steam", "Steam");
PlayGuiSound("18_burn_steam.snt", 1.0f);
GivePlayerDamage(5.0f, "BloodSplat", false,false);
AddTimer("", 1.0f, "TimerInteractPipe");
}
void TimerInteractPipe(string &in asTimer)
{
SetEntityPlayerInteractCallback("putPipe", "InteractPipe", true);
}
void putpipe(string &in asItem, string &in asEntity)
{
SetEntityActive("pipe_piece_static_1", true);
PlayGuiSound("17_pipe_attach.ogg", 1);
AddPlayerSanity(3);
SetEntityActive("SpawnBrute", true);
StopSound("Sound_5", 1);
DestroyParticleSystem("ParticleSystem_14");
}
void SpawnBrute(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Brute", true);
GiveSanityDamage(30, true);
AddEnemyPatrolNode("Brute", "PathNodeArea_1", 0.001f, "");
AddEnemyPatrolNode("Brute", "PathNodeArea_6", 0.001f, "");
AddEnemyPatrolNode("Brute", "PathNodeArea_10", 0.001f, "");
AddEnemyPatrolNode("Brute", "PathNodeArea_17", 0.001f, "");
AddEnemyPatrolNode("Brute", "PathNodeArea_18", 0.001f, "");
AddEnemyPatrolNode("Brute", "PathNodeArea_20", 0.001f, "");
}
void OnEnter()
{
AutoSave();
}