-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an extended player's DeathMsg message #858
Conversation
Fix testdemos
Don't need an spr? |
Should we see the assist nickname or something in the DeathMsg? Assuming pAssister? Sorry for the stupid question, but I don't get it 😅 |
Do you support zbot? |
Have you read the above text?
|
Reworked SendDeathMessage Minor cleanup
Good feature. |
NEVER! |
@StevenKal You can implement this on your client if you practice. The standard vanilla client does not have these features. |
O.K., I supposed this had been implemented on a client update I was not aware of, that's why s1lentq added such but in fact he just extended so we can retrieve those infos via plugins, nothing more. And since "DeathMsg" is registered with "-1" for no specific size... so, extendable when we wish. |
Nice! Example video |
Description
These changes introduces enhancements to the DeathNotice function,
providing extra death flags to convey more information in death messages.
These flags are used to include extra details about player deaths, making death messages more informative
Extra Death Flags:
PLAYERDEATH_POSITION (Bit 1):
Position of Victim's Death: This flag includes the coordinates (X, Y, Z) of the place where the victim died.
It is useful for displaying a 'dead icon' on the HUD radar, indicating the victim's death location.
PLAYERDEATH_ASSISTANT (Bit 2):
Index of Assistant: When set, this flag includes the index of the assisting player who helped the attacker kill the victim. It allows players to know who assisted in the kill.
PLAYERDEATH_KILLRARITY (Bit 4):
Kill Rarity Classification: This flag adds a rarity classification to the death message.
It includes information about the rarity of the kill, such as headshot kills, kills through walls, flash assists, and more.
These classifications make death messages more engaging by highlighting exceptional kills.
Headshot Kill: Indicates that the victim was killed by a headshot, signifying exceptional accuracy and precision.
No-Scope Kill: Denotes a kill with a sniper rifle without using the scope, showcasing remarkable skill and reflexes.
Penetrated Kill: Highlights kills made through walls or objects, demonstrating tactical prowess.
Flash Assist: Marks kills assisted by flashbang grenades, revealing coordinated teamwork.
And More: Additional classifications may be introduced to further enrich the gameplay experience.
Usage for Developers:
AMXX plugin developers can use these flags to extract valuable information, such as kill rarity and other details, for use in their plugins.
Functions like hookchain CSGameRules_SendDeathMessage, register_message and register_event can be employed to access this additional information.
Benefits client-side for unofficial clients:
These enhancements extend beyond the official game, but it can benefit unofficial game clients as well. Non-official clients can use this additional information to create visual enhancements and customizations. This allows for a richer gaming experience and increased player engagement.