Second wind - get revived by killing any enemy just like in borderland!

Discussion in 'Archived: Plugin Requests' started by Macaron, Sep 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Macaron

    Plugin category: RP, Fun, Mechanic, PVP
    Suggested name: Second Wind

    What I want: If you have played Borderland before, the plugin I suggest is pretty much the same from that game.

    The crippled stat:
    • When a player "dies" (right after his health reaches 0 and before he is really dead), heal him to full health, and he is given a potion effect of Slowness 5 and Jump boost 128 (to prevent him from jumping). At the same time, constantly play bleeding particles on him (blockbreaking particles of redstone block) and message nearby players "{playername} is down!"
    • In that stat, the player is healed to full health, and ticks down by 2 health/second (or 1 heart/20 ticks)
    • When his health reaches 0, he is really dead - then it is other plugin's job to deal with his death.
    How to be revived:
    • When that player kills any mob or player (by any methods, including bows and melee), release him from that stat, and set his health to 5 hearts.
    • Other players can manually revive him by right click.
    • After revived, that player has a cooldown of 4 minute. During that time, the player cannot "cripple" anymore. If his health is depleted again, then he dies instantly.
    Ideas for commands: /d : just give up and die

    Ideas for permissions:
    • secondwind.heal: when revived, instead of five hearts, the player is healed to full health. (or just give him 2 ticks of heal 10 potion effect)
    • secondwind.3min: the cooldown reduces to 3 minute
    • secondwind.moretime: the ticking speed in crippled stat reduces to 1 health/second
    • secondwind.giveup: players with this permission will die instantly on 0 health.

    When I'd like it by: I know there's a lot to do, so no rush..
     
  2. Offline

    Sabersek

    Edit: Incorrect.
     
  3. Online

    timtower Administrator Administrator Moderator

    Sabersek Listen to the entitydamageevent, then cancel that and set the health: player won't die.
    Or use NMS to counter the respawn select screen.
     
  4. Offline

    Sabersek

    Ah, thank you timtower! If I get the time I can do this.
    Edit: Just remembered, sorry for any hard feelings earlier.
     
  5. Online

    timtower Administrator Administrator Moderator

    I mostly ignore rage because I won't win anything from it.
     
  6. Offline

    Macaron

    Sabersek
    I didn't see your previous post, but have seen other plugins like this anyway, but many of them are either outdated or glitchy, but I'm pretty sure this is possible with bukkit.
    Thanks for taking this project though. Feel free to ask for any detail. I'm using bukkit 1.7.9 r0.1.
    Also, is it possible to make the player appeals as a dead body with protocol? That would be fantastic.
     
  7. Online

    timtower Administrator Administrator Moderator

    Macaron There are some packets able to do that.
     
  8. Offline

    Macaron

  9. Offline

    Macaron

    Bump.
     
  10. Offline

    Sabersek

    Sorry, I don't have the time at the moment =/
     
  11. Offline

    au2001

    Macaron Sounds cool :D MIGHT do that (if I have time...) I'll tell you if I have time to so this project. if anybody else wants to make this, feel free but please tell me ;) (by tahgging me)
     
  12. Offline

    Macaron

    au2001 So... are you still working on this? I know 1 whole month has pasted thought lol
     
  13. Offline

    Watto

    Macaron

    This is an awesome idea. I'll have a go at doing this ^^
     
  14. Offline

    Gingerbreadman

  15. Offline

    Macaron

  16. Offline

    Watto

  17. Offline

    Macaron

  18. Offline

    Gingerbreadman

    Macaron kk sorry for the delay I was busy this couple of days xD
    I am starting now!
     
  19. Offline

    Macaron

    Gingerbreadman That really comforted me lol. Waiting for your good news.
     
  20. Offline

    Macaron

  21. Offline

    Gingerbreadman

    Macaron Sorry about the delay, I had started of course but I was banned from the Bukkit forums for a week xD
    so I couldint reply!
     
  22. Offline

    Macaron

    Gingerbreadman Oh...sorry to hear that. Let me know when you finish plz, thx!
     
  23. Offline

    BrentHogeling

    Macaron I mean, I can do this if you want, it would be awesome if I could! Gingerbreadman Mind if I take this one pwease? ;3
     
  24. Offline

    Gingerbreadman

    BrentHogeling Sure! I have a big project I am working on anyway!
     
  25. Offline

    BrentHogeling

    Gingerbreadman Thank chu so very much! <3

    Macaron Few questions, firstly do you want them to be able to be killed in this state?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  26. BrentHogeling In boarderlands, they have a certain amount of time to kill an enemy or be revived. They can't be killed when in this dying faze.
     
  27. Offline

    BrentHogeling

  28. Offline

    Crud41

    bwfcwalshy BrentHogeling Macaron Gingerbreadman Watto Sabersek timtower


    There is a far easier to accomplish this than all of you think. Simply check for on damaged if play HP is 0. If it is 0, then add them to an arraylist which has all players who are in "Down" state. Set their HP to half a heart and apply slowness potion effect. The scheduled event on the arraylist will set the player hp to 0 if he doesn't make the kill in x amount of seconds. Have a playerkill eventhandler that will check if player who is killer is on the "Down" list. If so, he is removed and therefore not killed. His HP is set to full and he can go on his merry way.

    I realize that the 0 HP check can be glitchy. So I recommend at that point to use an if statement. By checking if the damage is > than the player's current HP, cancelling it and then setting HP to 1 and applying slowness with the above stated specifics.
     
  29. Offline

    BrentHogeling

    Crud41 I can do this fine....
     
  30. Offline

    Watto

    Crud41

    It is pretty easy but someone else took the job :s
     
Thread Status:
Not open for further replies.

Share This Page