Yes, you have 0 health and appear as dead... supercede blocks death cammera, death message, scores, money and
round-end, wich is why I'm using it.
I faked the rest, even death cammera, looks normal... I'm just stuck at this animation thing...
Or maybe you need a code to visualize things:
PHP Code:
// ...
public plugin_init()
{
RegisterHam(Ham_killed, "player", "player_killed")
//...
}
public player_killed(id, killer)
{
// ... checks, defines, ETC !
if(bFakeDeath) /* is true if id was the last player alive on his team */
{
entity_set_int(id, EV_INT_deadflag, DEAD_DYING)
entity_set_int(id, EV_INT_solid, SOLID_NOT)
entity_set_int(id, EV_INT_iuser1, 2) /* spectator mode: chase locked */
entity_set_int(id, EV_INT_iuser2, id) /* spectating: yourself */
entity_set_int(id, EV_INT_iuser3, killer) /* view targeting: killer ; and voilla, the normal CS deathcam */
entity_set_int(id, EV_INT_sequence, 104) /* headshot sequence */
entity_set_float(id, EV_FL_framerate, 1.0)
/* I don't know WHAT ELSE to place here so that animation plays NORMALLY */
// other irelevant stuff...
}
// other irelevant stuff...
return bFakeDeath ? HAM_SUPERCEDE : HAM_IGNORED
}
I don't think 8 replies were needed in order to understand one simple question.
__________________