• Die = Teleport?
    10 replies, posted
Since the title is probably very confusing... I'm trying to make it to where when a player dies he is then sent to a "death room" when he respawns. How can I do this...?
Well if he falls off of a cliff you can just make a teleporter trigger brush, but I don't know about getting shot to death.
[QUOTE=Sherman_Tank;20984217]I'm trying to make it to where when a player dies he is then sent to a "death room" when he respawns. How can I do this...?[/QUOTE] Do you mean a spawn room? If so, you just have to place an info_player_start/teamspawn/counterterrorist/terrorist/allies/axis/etc in the room you want them to spawn. However, if your "death room" is something the player goes in prior to going into the spawn room, then do the same thing as above, but place a trigger_teleport in the room and then place multiple info_teleport_destinations into the actual spawn room or area you want them to spawn. This, of course, is considering that your map is made for multiplayer. If it is for singleplayer, than do what the above person said. However, this would only cover "deaths" that are "controlled," for lack of a better term (i.e. falling off a cliff, getting smashed between two things, etc); it would not cover any time the player dies from NPCs.
I meant the player is sent into a room when they are dead that is the opposite of the spawn area. For example, in Counter-Strike, when you die you become spectator. In this Garry's Mod map, you die and are sent to the room where everyone who dies goes. I don't know if that's what you said, but it was hard to understand... no offense. lol
the only way you could use a teleporter is if you have a map-based death, like falling off a a cliff or getting smashed, in which case you could substitute the death for the teleport
[QUOTE=Sherman_Tank;20984217]when a player dies he is then sent to a "death room" when he respawns.[/QUOTE] You mean Heaven don't you?...DON'T YOU???
How about setting it up so everyone starts in a spawn room, and there's a timer preventing late-joiners and dead people from going in. The timer doesn't initiate until X number of players leave the spawn room, when it's up, the entrance from the spawn room to the rest of the map seals itself off. This would force anyone who's died, or joined late from joining in. Another method, instead of a timer, have a trigger set up to lock off the spawn room when some objective is completed, or button pressed or something. If you want players to be able to join at any time unless they died, that'd have to be through Lua, probably.
Instead of trigger_Hurt use Trigger_Teleport
Idea: Set up your spawn room with info_player_starts like normal, then put a teleport for each player spawn and another covering the whole spawn room. Set up each of the smaller triggers to teleport to different places on the map proper and the larger one to teleport to your 'death room'. The smaller teleports will transport the players as soon as the round starts, just set it so that a few seconds after that all the smaller teles shut off and the larger one turns on. Then whenever a player is killed/dies and respawns they'll go to the spawn room and be immediately teleported to the death room. Then just set it so that it all resets when the round ends.
This is how I see you doing this: put the info_player_starts in the "death room." when the round starts, you are teleported into the playing field, but only once. when you respawn, you will be in the death room.
that is a basic explanation of what he said, yes.
Sorry, you need to Log In to post a reply to this thread.