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. wopox1337 commented on Dec 17, 2024

    @wopox1337
    Member

    Tell the resolution please @jonathan-up

  2. 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

  3. wopox1337 commented on Dec 17, 2024

    @wopox1337
    Member

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

  4. locked and limited conversation to collaborators on Dec 17, 2024
  5. 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions