Lev писал(а):
You can use both.
but
return FMRES_IGNORED dose not work with
engine function ?
Lev писал(а):
Код:
new prevWeapon[33];
public Fw_FmPlayerPostThinkPost(id)
{
...
new weap = get_user_weapon(id);
if (prevWeapon[id] != weap)
{
prevWeapon[id] = weap;
if (weap == HLW_CROWBAR)
{
...
}
}
i think this method is similar to the work of some function ===> (worked only when change weapon slot )
like :
Код:
Ham_Item_Deploy
or
Код:
register_event("CurWeapon"
... and others
so your method and this functions is not called every time before a client renders a frame with physics ?
(I mean some of the events)Ex: if i want change weapon model when player has ammo (ex:
RPG AMMO) to
v_rockcrowbar.mdl and then change it weapon when player has not ammo to
v_crowbar.mdl .. (
all this at that moment))
It will not happen!