Events triggered by the player's death. Created 15 years ago2009-07-17 18:11:06 UTC by ATDestroy ATDestroy

Created 15 years ago2009-07-17 18:11:06 UTC by ATDestroy ATDestroy

Posted 15 years ago2009-07-17 18:11:06 UTC Post #270378
Is it possible to trigger an event using the players own death as the trigger condition?

I'm experimenting with a dream-like sequence, I want the player to be eventually faced with an impossible to win situation, and when they die, they wake up in the real world.

Is there any way to do that? and if not, any suggestions to maybe..fake it?
Posted 15 years ago2009-07-17 18:20:05 UTC Post #270380
I know there's an entity for HLDM that acts as a trigger_relay when a player dies. I don't remember the name of it, but I believe Atom does. It might work in single player.

But there will probably be problems with actually killing your player, because even if you manage to do a level change you'll still be dead in the new map.

It might be better to fake the death with a camera and an ambient_generic that plays the "death beep". The problem with that is how is the game supposed to know when you want to trigger the fake death? Without a way to measure the player's health, I'm honestly at a loss, but surely you can think of something.
Posted 15 years ago2009-07-17 18:21:17 UTC Post #270381
How about a fake death? You could use a trigger_camera and fade to black, then teleport the player to the next area.

Edit: World Crafter you beat me to it.

Maybe it can be done with Spirit?
Posted 15 years ago2009-07-17 18:28:20 UTC Post #270382
Perhaps I'll have to make a compromise, and make it a fall death, or something like that. That way I could just have a trigger area at the bottom, and play the fall death sound and etc. I'll do some experimenting in hammer, and I'll let you know what I come up with.
Posted 15 years ago2009-07-17 18:50:55 UTC Post #270383
I'm experimenting with a dream-like sequence, I want the player to be eventually faced with an impossible to win situation, and when they die, they wake up in the real world.
Are you spying on me?
People can't die in dreams, BTW. They wake up just before their "heart" stops beating.
Just have an ambush and before the enemies open fire, load the next map.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-07-17 19:07:37 UTC Post #270384
What do you mean am I spying on you?

And also, I would like there to be a brief moment where the player believes they have failed, before the dream is over. I would preferably have it so that the player has to fight enemies, but is eventually overwhelmed. Although a secondary idea I have is to make them miss an impossible jump, and fall and wake up when they hit the ground. (not really but I will create the illusion that they hit the ground.)
Posted 15 years ago2009-07-17 19:17:56 UTC Post #270385
TWHL2's HL entity guide used to have special names you could put as an entities name that would trigger entities. Player death was one of them >_>

Its not there anymore.
TheGrimReafer TheGrimReaferADMININATOR
Posted 15 years ago2009-07-17 19:31:00 UTC Post #270386
People can't die in dreams, BTW.
Not entirely true. I died in one of my dreams. I saw my own death in 3rd person.
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2009-07-17 19:35:17 UTC Post #270387
Your heart probably didn't stop beating before you woke up.
What do you mean am I spying on you?
Check the news on the JeffMOD productions steam group page.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-07-17 19:37:15 UTC Post #270388
People can't die in dreams, BTW.

Not entirely true. I died in one of my dreams. I saw my own death in 3rd person.
Same. Twas freaky.
monster_urby monster_urbyGoldsourcerer
Posted 15 years ago2009-07-17 19:37:18 UTC Post #270389
Every time I die in a dream, I wake up right before 'it' happens.
TheGrimReafer TheGrimReaferADMININATOR
Posted 15 years ago2009-07-17 19:40:02 UTC Post #270390
I watched myself get eaten by a shark twice in one night. I decided to stay up after the second time.

Apparently seeing a shark in your dream is a sign of stress and seeing yourself killed in a dream is due to feeling overwhelmed. It happened during a week where I was temporarily manager of my department.
monster_urby monster_urbyGoldsourcerer
Posted 15 years ago2009-07-17 19:47:07 UTC Post #270392
Om nom nom! So delicous, I wake you up twice!
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-07-17 20:06:54 UTC Post #270393
Maybe you could use a game_playerdie? I have no idea how you would revive a dead player though.
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2009-07-17 20:09:55 UTC Post #270395
Nice.
So that's what Ye Olde TWHL looked like...
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-07-17 20:12:33 UTC Post #270397
What about it activating a trigger_hurt with a negative damage?
Posted 15 years ago2009-07-17 20:15:39 UTC Post #270398
Negative dammage just heals them, It can't bring them back or kill them.
And if the player has an HEV suit, then they will see their Armor, and to a lesser extent once the suit is on, Health, overcharge.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-07-17 20:24:37 UTC Post #270400
If you activate the trigger_hurt with game_playerdie, and set the damage amount to something like -10000, the player would heal back all at once without really seeing the health level going up. Although I still don't know whether that would actually revive the player in question or not.
Posted 15 years ago2009-07-17 21:17:43 UTC Post #270402
game_playerdie was the one I couldn't remember, heh.
TheGrimReafer TheGrimReaferADMININATOR
Posted 15 years ago2009-07-17 21:23:59 UTC Post #270403
yeah so it is completely possible to do what I'm thinking of, its just a matter of reviving the player after they have died. To my knowledge, there is no way to do this.
Posted 15 years ago2009-07-17 22:32:02 UTC Post #270405
Is this a mod of your own? In that case you could add code for that...
Posted 15 years ago2009-07-17 23:13:33 UTC Post #270408
Is there any way to trigger a console command? Like when the player dies, trigger "map whatever"? That would work... if it's even possible, I mean. I don't think it is.
Jessie JessieTrans Rights <3
Posted 15 years ago2009-07-18 00:14:38 UTC Post #270416
Have a game_playerdie target a trigger_changelevel. Or target a multimanager for some fade effects or so then the trigger_changelevel.
Posted 15 years ago2009-07-19 10:01:51 UTC Post #270516
Changing the level won't make you live again. The new level will load but you will still be dead.
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2009-07-19 10:17:12 UTC Post #270518
oh god i remember that TWHL.
Oh the memories!
Tetsu0 Tetsu0Positive Chaos
Posted 15 years ago2009-07-19 10:59:19 UTC Post #270520
I've done some experimenting, and yeah, there seems to be no way for me to kill the player, yet revive them somehow. I'll just have to go with my secondary choice. Oh well, at least I know it will work.
You must be logged in to post a response.