Solved Infamy reset

Discussion in 'Plugin Requests' started by Wyza, Dec 29, 2015.

  1. So we had a event on my server and killed each other alot but we gained outlaw status for doing this. So i was wondering if someone could make a plugin to reset the players outlaw meter to zero.
     
  2. +1 Would really appreciate

    Been doing some events but due to too fast outlaw status people are getting angry for losing some of their stuff...
     
  3. Why not turn off dropping items during an event with playerlootmode?
     
  4. still dont change the fact that we are gaining infamy...
     
  5. Code:
    EntityStats stats = player.WorldPlayerEntity.GetComponent<EntityStats>();
    stats.GetFluidEffect(EEntityFluidEffectType.Infamy).Reset();
    or
    stats.GetFluidEffect(EEntityFluidEffectType.Infamy).SetValue(0f);
    VoilĂ !

    Should work, I didn't test it...
     
  6. Wulf

    Wulf Community Admin

    session.WorldPlayerEntity.GetComponent<EntityStats>().GetFluidEffect(EEntityFluidEffectType.Infamy).Reset();

    Works fine ^
     
  7. Need to pass a boolean now.
    session.WorldPlayerEntity.GetComponent<EntityStats>().GetFluidEffect(EEntityFluidEffectType.Infamy).Reset(true);
    [DOUBLEPOST=1458195222][/DOUBLEPOST]
    You could always just change the max value to 0f instead of resetting it. Then change it back to 100? or whatever the original max value is after you've finished your event.
     
  8. Wulf

    Wulf Community Admin

    Ah yeah, I just copy/pasted from the plugin I had for it before.
     
  9. I need one plugin if no have infamy.
     
  10. AdminTools for Hurtworld | Oxide provides the ability to set infamy per player or for all players.
    You can use /infamy Playername amount or /infamy all amount
    [DOUBLEPOST=1464112897][/DOUBLEPOST]If enough interest I'll make a NoInfamy plugin
     
  11. both through the console(cmd)