Server Suggestion Death location hospital respawn point

Discussion in 'Suggestions' started by Overlord, Nov 6, 2020.

  1. Overlord

    Overlord Tour Guide Donator

    Joined:
    May 10, 2020
    Messages:
    174
    Creepsteve05
    You should respawn at the hospital closest to where you died. For instance, if you died in Ocean city, you would spawn at the ocean city hospital. If you died in the wild, let's say at -3000, -200, you would respawn at the closest hospital, the Westridge hospital. This would not only help promote other cities but give the server some more realism.
     
    Kawaibab likes this.
  2. Matthew100x

    Matthew100x Judge Judge Donator

    Joined:
    Jun 18, 2020
    Messages:
    51
    Matthew100x
    This actually probably wouldn't be hard to code either. All the code has to do is create a command that sets a respawn point, and then the plugin just has to check the location of the death and bring it to the closest respawn point.
     
    Overlord likes this.
  3. MrFib

    MrFib Ranger Ranger

    Joined:
    Aug 7, 2020
    Messages:
    61
    _MrFib
    I think dying in the wild should bring you back to the capital hospital, otherwise people would use this to get fast and cheap ways to other cities. For example, people who need to get to covington would just go to Warp 2, kill themselves, and be respawned in covington's hospital for only k5. They should only respawn in a private city hospital when they die in the city's region.
     
  4. Overlord

    Overlord Tour Guide Donator

    Joined:
    May 10, 2020
    Messages:
    174
    Creepsteve05
    As Fib said, people could cheat and use wild warps as free transport. Because of that this should only apply to a certain perimeter around the city. This does pose a logistical problem however, as a simple if,then program won't work. If the server has extended world guard flags, there's a flag called testx which can run a boolean (in server files) within the regioned area. In my experience the extended worldguard flags plugin overlaps the stock flags and you need to have specific reduced permissions to use them, which is a pain. It's still possible.

    EDIT: I actually have this exact prewritten code from a server I used to own. There's nothing proprietary to it. an admin just needs to dm me if they want to use it
     
    Last edited: Nov 21, 2020
  5. Natalie Anonymous

    Natalie Anonymous Citizen

    Joined:
    Jun 24, 2020
    Messages:
    295
    violetunknown
    *smiles and nods but has no clue what is going on*