Solved PvP/PvE player toggle

Discussion in 'Plugin Requests' started by Togoshige, Jun 7, 2017.

  1. With a chat command, a player can toggle between:
    1/10th receive and attack damage
    and
    100% receive and attack damage

    Reasoning:
    I have PvPers and PvE/Roleplayer/Friendly players on my server,
    the PvPers want to kill everyone, the Friendly players want to build towns and talk and stuff,
    Ive had trouble keeping the two groups happy,

    With this toggle PvP/PvE ability, the friendly players can toggle it and reduce the damage they receive by 10x, but also with that, now they can only do 1/10th the damage they could before (so that this cant be abused)

    PvPers can leave the toggle off and go do what they do

    This would help allow PvPers and Non-PvPers to co-exist, without the Non-PvPers getting rekt (KOS)[Kill on Sight] all the time

    Other References:
    Weapon Damage Scaler ----> Weapon Damage Scaler for Rust | Oxide
    Damage Mod -----> Damage Mod : Players for Rust | Oxide
    Global Damage Modifier ----> Global Damage Modifier for Rust | Oxide

    Extra Features:
    - NoEscape support ----> NoEscape for Rust | Oxide, so they cant toggle this while already in combat
    - chat message when you attack someone in PvE mode to let you know they are in PvE mode
     
    Last edited by a moderator: Jun 7, 2017
  2. I built it, I present to you DamageToggle,
    type /peaceful to go into PvE mode, where you give and take only 40% damage,
    type /peaceful again to toggle back out of it
    also supports NoEscape so players can't toggle into PvE mode when being raided or attacked in combat

    It's had mixed reviews, PvPers and KOSers dont seem to like it LOL, but Friendly players and Roleplayers like it

    Potential TODO:
    - cooldown
    - dont let players in PvE mode hold explosives (force drop)
    - disable PvE mode when in range of a monument
    - disable PvE mode if you attack someone

    Was also thinking of changing /peaceful to /friendly or /pve

    Let me know if you have any other feedback/ideas/suggestions
    Also anyone's welcome to take the code and modify it or use it, go for it!
     
    Last edited by a moderator: Jun 11, 2017
  3. Where's the code? :p
     
  4. Wulf

    Wulf Community Admin

    Not the section for releasing plugins. :p
     
  5. His resources... hmm?