void OnStart()
{
AddEntityCollideCallback("Player", "pot_area", "PotBreaks", true, 1);
AddEntityCollideCallback("Player", "wind_area", "Wind", true, 1);
AddEntityCollideCallback("Player", "SeeTorsoSound", "React", true, 1);
}
void PotBreaks(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("pot_plant_small01_4", false);
SetEntityActive("pot_plant_small01_3", true);
SetEntityActive("wind_area", true);
GiveSanityDamage(5, false);
StartPlayerLookAt("table", 10, 100, "");
}
void Wind(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse_male_torso_1", true);
SetEntityActive("corpse_male_arm_1", true);
SetEntityActive("blood_spatter01_2", true);
SetEntityActive("SeeTorsoSound", true);
SetEntityActive("Insanity", true);
SetLampLit("candlestick_tri_1", false, true);
SetLampLit("chandelier_nice_1", false, true);
SetLampLit("candlestick_floor_2", false, true);
SetLampLit("candlestick_floor_1", false, true);
SetLampLit("candle_floor_1", false, true);
SetLampLit("candle_floor_small_1", false, true);
SetLampLit("candlestick01_2", false, true);
SetLampLit("candlestick01_1", false, true);
FadeLightTo("PointLight_1", 0, 0, 0, 0, 0, 1);
CreateParticleSystemAtEntity("ParticleSystem_2", "ps_break_cavein_local.ps", "level_celler_1", false);
PlaySoundAtEntity("", "general_wind_whirl.snt", "level_celler_1", 0, false);
}
void React(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
StartScreenShake(0.003f,0.25f, 1,1);
GiveSanityDamage(50, true);
FadePlayerFOVMulTo(RandFloat(0.7f,1.3f), RandFloat(0.05f,0.1f));
}