http://wiki.frictionalgames.com/hpl2/amn..._functions
Use the MovePlayerHeadPos and FadePlayerRollTo functions for the effect of laying down on the bed.
Use the FadeImageTrailTo function for any blur effect.
Use the SetPlayerActive function to prevent the player from moving.
Use the StartPlayerLookAt function to have the player look towards an area, and the StopPlayerLookAt function after he's done looking at the area.
Use the AddPropImpulse function for the door bang effect.
Use the CreateParticleSystemAtEntity function on the door for the dust effect.
Use the AddEntityCollideCallback function to active a callback when the player enters an area.