Raised This Month: $ Target: $400
 0% 

Death animation bug while FL_FROZEN


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
StSatan
Senior Member
Join Date: Apr 2010
Old 11-15-2013 , 05:39   Death animation bug while FL_FROZEN
Reply With Quote #1

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...
StSatan is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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