Closed fl0werD closed 4 years ago
Please give me a script or whatever to reproduce this issue
Стреляя по врагам баг, по тиммейтам - норм.
#include < amxmodx >
#include < reapi >
public plugin_init( )
{
RegisterHookChain( RG_CBasePlayer_TraceAttack, "CBasePlayer__TraceAttack_Post", true );
}
public CBasePlayer__TraceAttack_Post( iVictim, iAttacker, Float: flDamage, Float: vecDir[ 3 ], iTrace, iBitsDamageType )
{
client_print( 0, pritn_chat, "%.2f %.2f %.2f", vecDir[ 0 ], vecDir[ 1 ], vecDir[ 2 ] );
}
В догонку: как получить в трейсаттаке уже получившийся урон как в тейкдмг? Либо как в тейкдмг взять позицию vecEndPos, ибо через global_get криво.
@fl0werD i can't reproduce that issue what is your version reapi, regamedll and amxmodx?
Неверные значения выводит. Например { 0.0, очень_гиганское.0, очень_гиганское.0 } С ham'ом всё ок. Причем баг работает только на врагов.