1. Hello, I have this code:

    Code:
    void OnPlayerDie(BasePlayer player, HitInfo info)
    {
        Puts("OnPlayerDie works!");
    }
    void OnPlayerRecover(BasePlayer player)
    {
        Puts("OnPlayerRecover works!");
    }

    If the player is dropped and raised, everything is fine, the OnPlayerRecover hook is working.

    But if a player just kills, there will be such an order in the console:
    Code:
    OnPlayerDie works!
    OnPlayerRecover works!

    Why? Is it a feature or a bug? Thanks for the answer!
     
  2. Can anyone tell me please?
    @Wulf <3
     
  3. Wulf

    Wulf Community Admin

    So your concern is just the order of the hooks?
     
  4. Hello! Thanks for your reply!
    No, the main problem is, why does the hook work out at death OnPlayerRecover
     
  5. Wulf

    Wulf Community Admin

    I don't know, wouldn't make much sense unless that is called when they respawn too.
     
  6. OK thank you very much!
    I'll just add a health check.

    I just asked a question, after reading the documentation :)
    Code:
    Called when the player is about to recover from the ‘wounded’ state

    issue is closed