Quote:
|
the hitgroup isn't available yet
|
It is. It should be a get_user_attacker()'s fault. You have to cache the last three bullet attacking traces' hitgroup for every player. Use get_tr2(ptr, TR_iHitgroup) to get hitgroup, see
[HOWTO] Detect fired particle creation/type/number/damage/obstacle/vector for details.
And on damage log message block/resend it using the original text and the cached hitgroup. Though you can't block/change a log message with
register_logevent. You have to use the fakemeta module:
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init() {
register_forward(FM_AlertMessage, "AlertMessage")
}
public AlertMessage(AlertType:at_type, const message[]) {
// check if at_type == at_logged
// return FMRES_SUPERCEDE - to block the message
// return FMRES_IGNORED - to not block the message
}