The title explains a lot but still...
If you know any good scares please post this here:
1. What it does.
2. how it works.
3. if it requires a special kind of script.
4. if it contains any effects, (I.E. particles) if yes than post them as well.
(I'll go ahead and post the first one)
This scare is based on the one where a vase (seems to) randomly break, basically what it does is make it look like the glass in front a painting's frame bursts.
now for how it works:
1. You put a display with the legs through a wall so you only see the top and then put a painting in there then resize the display to fit the painting to make it look more realistic.
2. Then you put an area in front of the painting (make sure it is about 3 feet in front of the painting so the player walks against it when walking towards the painting(if you want a particle effect with it you have to put another area right against the "frame".))
3. you have to use this script:
void OnStart()
{
AddEntityCollideCallback("Player", "AREA", "FUNCTION", true, 1);
}
void FUNCTION(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("DISPLAY", 0);
}
void OnEnter()
{
}
void OnLeave()
{
}
4. Optionally do this to make it even scarier:
void OnStart()
{
AddEntityCollideCallback("Player", "AREA", "FUNCTION", true, 1);
}
void Explode(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("DISPLAY", 0);
PlaySoundAtEntity("", "SCARESOUND", "AREA", 0, true);
CreateParticleSystemAtEntity("", "PARTICLE", "AREA2", false);
AddPlayerSanity(-30);
}
(Keep in mind that "AREA2" should be against (or maybe even a little through) the glass of the "frame")In this case I made the "AddPlayerSanity" -30 which tells the game that when the player passes the Area his/her sanity will be reduced by 30.
but it is more fun to completely kill the players sanity (say -100) and make the player do something in the area in order to restore his/her sanity.
I hope this works out for everyone (if not pm me, I'll be more than glad to help) and if anyone else knows a good way to scare me or anyone else out there, be sure to post it here.