Skip to content

Fix SendDeathMessage kill rarity flags and transform to VFUNC#943

Merged
s1lentq merged 5 commits intorehlds:masterfrom
FEDERICOMB96:senddeathmsg-fixes
May 8, 2024
Merged

Fix SendDeathMessage kill rarity flags and transform to VFUNC#943
s1lentq merged 5 commits intorehlds:masterfrom
FEDERICOMB96:senddeathmsg-fixes

Conversation

@FEDERICOMB96
Copy link
Contributor

This solves some problems detected during the testing of the hook "RG_CSGameRules_SendDeathMessage" and is totally linked to rehlds/ReAPI#305

@FEDERICOMB96 FEDERICOMB96 changed the title Fixed SendDeathMessage kill rarity flags and transform to VFUNC Fix SendDeathMessage kill rarity flags and transform to VFUNC Feb 13, 2024
@Nord1cWarr1or
Copy link
Contributor

some problems

Can you describe these problems?

@FEDERICOMB96
Copy link
Contributor Author

some problems

Can you describe these problems?

Modify iRarityOfKill and iDeathMessageFlags vars inside SendDeathMessage function, amxx hook can't detect it.

Replace pVictim->m_bHeadshotKilled with iRarityOfKill & KILLRARITY_HEADSHOT is only for complete functionality of native rg_send_death_message and being able to change its value through the hook.

@s1lentq s1lentq merged commit 8ec5b6c into rehlds:master May 8, 2024
yohimik pushed a commit to yohimik/ReGameDLL_CS that referenced this pull request Jun 5, 2025
…ds#943)

* implement VFUNC to `SendDeathMessage`
* fix use KILLRARITY_HEADSHOT flag instead of member
* fix rare crash when pAssister is nullptr
* fix KILLRARITY_DOMINATION_BEGAN flag
This flag was never valid in "SendDeathMessage" hook
* set iDeathMessageFlags before call function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants