unnamed писал(а):
I think you can't hook the explosion directly without orpheu. But you can try to detect when player activate detonator and get all of his satchels
Is there a way of achieving this without orpheu?
Lev писал(а):
Rango
As in the mentioned topic, what is your real goal with this? Describe fully please.
Never seen weapon missing from a map.
I'd like to reset the satchel count of a player to 5 when he detonates any of his satchels
I'm using this piece of code to reset the satch count but the debug print shows that id is everyone
Код:
...
register_message(SVC_TEMPENTITY, "fw_SatchelExplode")
...
public fw_SatchelExplode(ent)
{
while((ent = find_ent_by_class(ent, "monster_satchel")))
{
if(get_msg_arg_int(1) == TE_EXPLOSION && pev_valid(ent))
{
new id = pev(ent, pev_owner)
set_pdata_int(id, m_rgAmmo[9], 5, XO_PLAYER)
client_print(0, print_chat, "DEBUG: id is %d", id)
}
}
}