AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Death animation bug while FL_FROZEN (https://forums.alliedmods.net/showthread.php?t=229796)

StSatan 11-15-2013 05:39

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...


All times are GMT -4. The time now is 23:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.