SmartlyDressedGames / Legally-Distinct-Missile

Fork of Rocket for Unturned maintained by the game developers.
MIT License
77 stars 29 forks source link

Fix god mode not healing broken leg and bleeding #25

Closed GNimrodG closed 2 years ago

GNimrodG commented 4 years ago

Fixed god mode not healing broken leg and bleeding, also removed an unused private member.

GNimrodG commented 4 years ago

I also fixed an obsolete event in UnturnedEvents.cs on this branch.

SDGNelson commented 4 years ago

Nice work. These seem like reasonable changes.

There is no CLA yet for this repository, but I will leave it open for anyone interested in merging your changes into their forks.

rube200 commented 4 years ago

@SDGNelson this commit Updated an obsolete event for some plugins overrise they will not work properly Unturned Code:

        if (DamageTool.damagePlayerRequested != null)
          DamageTool.damagePlayerRequested(ref parameters, ref flag);
        else if (DamageTool.playerDamaged != null)
          DamageTool.playerDamaged(parameters.player, ref parameters.cause, ref parameters.limb, ref parameters.killer, ref parameters.direction, ref parameters.damage, ref parameters.times, ref flag);