Skip to content

[BUG]: hook RG_CBasePlayer_TakeHealth does not work? #338

Closed

Description

@jonathan-up

👉👈 Contact Details (optional)

No response

🤔 What happened?

I registered the hook, but it was not executed

⚠️ Meta-information

meta version
Metamod-r v1.3.0.149, API (5:13)
Metamod-r build: 11:31:13 Apr 23 2024
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/603a257

amxx version
AMX Mod X 1.9.0.5294 (http://www.amxmodx.org)

reapi version is the latest of branch master

📄 Relevant log output

No response

Activity

  1. added
    Status: 🖐 available
    Type: 🐞 bug
    on Dec 14, 2024
  2. wopox1337 commented on Dec 17, 2024

    @wopox1337
    Member

    Tell the resolution please @jonathan-up

  3. jonathan-up commented on Dec 17, 2024

    @jonathan-up
    ContributorAuthor

    @SergeyShorokhov using CBasePlayer_TakeDamage replaces it, But I'm still curious why it doesn't execute when the player loses HP

  4. wopox1337 commented on Dec 17, 2024

    @wopox1337
    Member

    perhaps because "lost" does not fit the concept of "take health"?

  5. added
    Resolution: 🚫 wontfix
    Resolution: ❇️ resolved
    and removed
    Type: 🐞 bug
    Status: 🖐 available
    on Dec 17, 2024
  6. locked and limited conversation to collaborators on Dec 17, 2024
  7. converted this issue into a discussion #339 on Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: ❇️ resolvedResolution: 🚫 wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions