Death animation bug while FL_FROZEN
Hi every one. Is it a hlds bug, when player has flag FL_FROZEN, death animation is blocking?
For example:
Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
public plugin_init()
{
register_clcmd("say freeze", "cmd_freeze")
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
}
public fw_PlayerKilled(id) entity_set_int(id, EV_INT_flags, entity_get_int(id, EV_INT_flags) & ~FL_FROZEN)
public cmd_freeze(id)
{
new target, body
get_user_aiming(id, target, body)
entity_set_int(target, EV_INT_flags, entity_get_int(target, EV_INT_flags) | FL_FROZEN)
}
When you freeze the player and try to kill him - death animation won't play, even if you set him "unfrozen" before his death. Did someone knows how to fix this bug?
Sorry for my english...
|