Attano / L4D2-Competitive-Framework

This repository contains the most up-to-date plugins(both binaries and sources), extensions, vscripts and shared settings files. Configs such as ProMod and Equilibrium rely on this framework.
GNU General Public License v3.0
31 stars 38 forks source link

l4d2_jockey_jumpcap_patch.sp and l4d2_jockeyed_charger_fix.sp have double hook ability_leap #15

Closed Electr0 closed 7 years ago

Electr0 commented 8 years ago

this because you hook void OnEntityCreated by DHookAddEntityListener but this void currently fired by sdkhooks by default. this cause double fire same code in callback named as OnEntityCreated.

for fix just remove line DHookAddEntityListener(ListenType_Created, OnEntityCreated); because it is an unnecessary since sdkhooks built in sourcemod since 1.5.x.

Attano commented 8 years ago

Thanks. Feel free to make a pull request if you have a fixed copy.