Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player Fall = INSTANT DEATH!
einfrnirdyr Offline
Junior Member

Posts: 30
Threads: 7
Joined: Sep 2010
Reputation: 0
#1
Player Fall = INSTANT DEATH!

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.
09-29-2010, 01:45 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#2
RE: Player Fall = INSTANT DEATH!

Make an area and apply 1000 damage to the player.

[Image: 16455.png]
09-29-2010, 01:46 PM
Find
einfrnirdyr Offline
Junior Member

Posts: 30
Threads: 7
Joined: Sep 2010
Reputation: 0
#3
RE: Player Fall = INSTANT DEATH!

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
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#4
RE: Player Fall = INSTANT DEATH!

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

[Image: 16455.png]
09-29-2010, 01:53 PM
Find
einfrnirdyr Offline
Junior Member

Posts: 30
Threads: 7
Joined: Sep 2010
Reputation: 0
#5
RE: Player Fall = INSTANT DEATH!

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.
09-29-2010, 01:59 PM
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#6
RE: Player Fall = INSTANT DEATH!

This should be the line you need, call it in the area at the hole:

* 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):

GivePlayerDamage(1000, "BloodSplat", false, true);


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
09-29-2010, 03:29 PM
Find
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#7
RE: Player Fall = INSTANT DEATH!

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.
09-30-2010, 12:37 PM
Find




Users browsing this thread: 2 Guest(s)