Frictional Games Forum (read-only)

Full Version: Player Fall = INSTANT DEATH!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want the Player to fall down a deep hole - and I want to guarantee his DEATH. INSTANTLY!

Mwaahahaha...

What's the best way to set up such a grisly demise..? I don't want to set up ridiculously deep pits. I want the Player to pass through a Trigger Area that kills them as they hit bottom so that there is NO chance of accidental survival.

Thank you.
Make an area and apply 1000 damage to the player.
Any recommendation for a preferred type of Area? Sorry, I just started this modding stuff the other day and I'm just getting to grips with this editor. Big Grin
(09-29-2010, 01:51 PM)einfrnirdyr Wrote: [ -> ]Any recommendation for a preferred type of Area? Sorry, I just started this modding stuff the other day and I'm just getting to grips with this editor. Big Grin

http://hpl2.frictionalgames.com/tutorials

Check my "Making something happen when the player enters a room or goes to a specific area" video tutorial at the bottom.
OK, so I can't just add an Area and add a value to it. This looks like it requires some scripting, right? That's something I am a total novice with and is definitely something I am going to have to learn about.

But hey, thanks for your help. At the very least it points me in the right direction.
This should be the line you need, call it in the area at the hole:

Code:
* Type can be: BloodSplat, Claws or Slash.
*/
void  GivePlayerDamage(float afAmount, string& asType, bool abSpinHead, bool abLethal);

It should look like this, setting bool abLethal will make it kill you no matter what damage you set (I think):

Code:
GivePlayerDamage(1000, "BloodSplat", false, true);
While we're on the subject of dying, would someone mind explaining how checkpoints work? I've looked through the dev scripts but don't really understand what they do. Can they be used to reset the level after the player dies? Because when I die on my map everything stays the same as it was before.