Closed Kroytz closed 3 months ago
Sorry I found HookEvent logic has done the same logic (FindListener then AddListener)
Test again with hook CreateEvent and change param bForce = true, then item_equip
event works as expected.
I'm not sure we should really be changing this bool, because the fact that it doesn't fire is coming from valve code directly, so forcing these through may have unforeseen consequences
I'm not sure we should really be changing this bool, because the fact that it doesn't fire is coming from valve code directly, so forcing these through may have unforeseen consequences
I agree
I found
item_equip
only fire once when I receive an item but not like CSGO does(fire at everytime weapon switch). Seems likeCreateEvent
function fails sometimes. So we can add a hook forCreateEvent
and make the bForce always true. IDK why it works at least it works for me.