Frictional Games Forum (read-only)
Player Fall = INSTANT DEATH! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Player Fall = INSTANT DEATH! (/thread-4826.html)



Player Fall = INSTANT DEATH! - einfrnirdyr - 09-29-2010

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.


RE: Player Fall = INSTANT DEATH! - MulleDK19 - 09-29-2010

Make an area and apply 1000 damage to the player.


RE: Player Fall = INSTANT DEATH! - einfrnirdyr - 09-29-2010

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


RE: Player Fall = INSTANT DEATH! - MulleDK19 - 09-29-2010

(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.


RE: Player Fall = INSTANT DEATH! - einfrnirdyr - 09-29-2010

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.


RE: Player Fall = INSTANT DEATH! - Frontcannon - 09-29-2010

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);



RE: Player Fall = INSTANT DEATH! - Equil - 09-30-2010

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.