Players respawn at location where they died

Discussion in 'Mapping Questions & Discussion' started by Mikroscopic, Apr 5, 2016.

  1. Mikroscopic

    aa Mikroscopic

    Messages:
    617
    Positive Ratings:
    633
    Is it possible to make players respawn at the place they were when they died / remain in the same location when they change class?

    Not quite sure exactly why I'm trying to do this, but... just wondering...
     
  2. Izotope

    aa Izotope Never releases maps

    Messages:
    628
    Positive Ratings:
    602
    There are a few really unprecise ways of achieving this, yes,
    but I'm assuming you want the exact spot, which is not possible without a server plugin.
     
  3. Egan

    aa Egan

    Messages:
    1,319
    Positive Ratings:
    1,522
    It's probably possible but I wager slightly difficult: can use game_playerspawn to send a TestActivator to a series of filter_targetname (one for each player in the map) to detect who spawned, and then teleport the player to wherever they died, the location of which is set by teleporting some associated entity which holds the transform (the position in space) of that player who died using game_playerdie (same method as above).

    If you want to do this I recommend trying to comprehend ABS' eggwar associative entities guide.
     
    • Thanks Thanks x 1
  4. Mikroscopic

    aa Mikroscopic

    Messages:
    617
    Positive Ratings:
    633
    What about switching classes? Is it possible to trigger it by switching classes rather than dying?