Hurtworld PvE (no player killing)

Discussion in 'Plugin Requests' started by xMikazuky, Dec 17, 2015.

  1. I know most like a PVP server, but the others who like to enjoy the game and learn what to do is a great start for some beginners, would be like a plugin that would prevent players to kill a good guess! :) :) :)
     
  2. I second this. I'm running a PVE server right now but you still get those little trolls who like to attack people. Vehicle damage is way too strong and you end up killing your friends when you barely tap them with your bumper lol. Basically something equal to "Godmode" would be fine for my purposes. That way you won't kill your friends or die from fall damage or get some little punk poking you with his spear.
     
    Last edited by a moderator: Dec 29, 2015
  3. yeah this would b extremly handy, as Kristoffer has said :)
     
  4. I love the game, but this game would be even better if there was a PVE plugin. I Third the motion!!!!
     
  5. PVE Rules...I motion for PVE!!!
     
  6. Until this gets developed, I've come up with a solution. You can change what players drop when they die, so I set that to nothing, and then gave them all the debug backpack. Now the very few things that can still kill you, (Headshots, Falling, Cars) won't make you lose any of your loot. If anyone else is interested in this "work-around" the console command is the following. "rcon playerlootmode 0" You can probably add this to the autoexec file so you don't have to do it manually every time. I'll play around with that tomorrow.
     
  7. P V E mode Plug-in
     
    Last edited by a moderator: Jan 6, 2016
  8. Let me offer another solution. We can use HW Clans plugin, which has "friendly fire" feature. Just add all players to one clan and thats it. I have not tried it, but another request is solved with post
     
  9. Wulf

    Wulf Community Admin

    Pretty sure it doesn't have that feature yet, it was just requested.
     
  10. As far as I know, it is possible to remove fall damage using:
    Code:
    var motor = session.WorldPlayerEntity.GetComponent<CharacterMotorSimple>();
    motor.FallDamageMultiplier = 0;
    not sure about the rest though, might do some looking into Assembly-CSharp and tell you later
     
  11. Is this something people would still want?

    It can be done but it would be a bit "hacky" as there's no event for a player taking damage in Hurtworld (would be happy to be wrong on this one).
    The way godmode works in AdminTools is that it intercepts the player death and prevents it from happening, which is why even in godmode you see yourself taking damage.

    Anyhoo i'll throw a quick version together and hopefully have it tested tonight
     
  12. Because it's easier to skip the death event with an existing hook, than it is to get the EEntityFluidEffect child of EntityStats and change the maximum and current float value of Health to something massive and back again. Simplicity! (Plus messing with FluidEffects can sometimes cause UI Bugs)

    For PVE, You can't stop a player from dealing damage to another player while maintaining that players damage from ailments and animals.

    The closes thing you'll get for the moment is using OnEntitySpawned(NetworkViewData entity) and detect bullets, using the PrefabId, then check if they have shot a Player (GameObject for players is PlayerServer(Clone) then perhaps Punish them or send them to a jail, take away their weapon or something.

    I would wait for them to implement DamageToPlayer fluid effect though as I'm not sure what sort of performance impact that may have with large groups of people shooting.

    You could always do a test and find out :)