From ab4a06582ab5b6a7109bfe71325809b1a33b664a Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 9 May 2024 15:50:30 +0700 Subject: [PATCH] Add new flag rarity of kill in-air Minor cleanup --- reapi/extra/amxmodx/scripting/include/cssdk_const.inc | 5 +++-- reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc | 4 ++-- reapi/src/natives/natives_misc.cpp | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc index b3522bc6..821bbe9f 100644 --- a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc +++ b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc @@ -1580,5 +1580,6 @@ enum KillRarity KILLRARITY_ASSISTEDFLASH = 0x020, // Assister helped with a flash KILLRARITY_DOMINATION_BEGAN = 0x040, // Killer player began dominating the victim (NOTE: this flag is set once) KILLRARITY_DOMINATION = 0x080, // Continues domination by the killer - KILLRARITY_REVENGE = 0x100 // Revenge by the killer -}; \ No newline at end of file + KILLRARITY_REVENGE = 0x100, // Revenge by the killer + KILLRARITY_INAIR = 0x200 // Killer was in the air (skill to deal with high inaccuracy) +}; diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc index 000efac2..013eb5ea 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc @@ -1217,7 +1217,7 @@ native rg_player_relationship(const player, const target); * @param killerWeaponName The name of the weapon used by the killer. * @param iDeathMessageFlags Flags indicating extra death message info, see DeathMessageFlags enum in cssdk_const.inc * @param iRarityOfKill An bitsums representing the rarity classification of the kill, see KillRarity enum in cssdk_const.inc -* +* * @noreturn */ -native rg_send_death_message(const pKiller, const pVictim, const pAssister, const pevInflictor, const killerWeaponName[], const DeathMessageFlags:iDeathMessageFlags, const KillRarity:iRarityOfKill); \ No newline at end of file +native rg_send_death_message(const pKiller, const pVictim, const pAssister, const pevInflictor, const killerWeaponName[], const DeathMessageFlags:iDeathMessageFlags, const KillRarity:iRarityOfKill); diff --git a/reapi/src/natives/natives_misc.cpp b/reapi/src/natives/natives_misc.cpp index 1f2e13a9..8c1ef8af 100644 --- a/reapi/src/natives/natives_misc.cpp +++ b/reapi/src/natives/natives_misc.cpp @@ -3304,7 +3304,7 @@ cell AMX_NATIVE_CALL rg_player_relationship(AMX *amx, cell *params) * @param killerWeaponName The name of the weapon used by the killer * @param iDeathMessageFlags Flags indicating extra death message info * @param iRarityOfKill An bitsums representing the rarity classification of the kill -* +* * @noreturn */ cell AMX_NATIVE_CALL rg_send_death_message(AMX *amx, cell *params)