Kailo97 / smartjaildoors

Sourcemod plugin for CS:GO
8 stars 5 forks source link

Door Hooks Added at Round Start and Stop #4

Closed data-bomb closed 8 years ago

data-bomb commented 8 years ago

Fixes issue with door hooks not working after first round. Looks like the HookSingleEntityOutput is unhooked after the round is over and entities are re-assigned. Might not need to remove them on RoundEnd but might as well be safe. Tested on server with no errors.

Kailo97 commented 8 years ago

As way i think about post checking: hook input by class (this do only once in plugin start) and match names in callback.

data-bomb commented 8 years ago

Yeah, this was the quick fix but I like the hook inputs by class and then checking m_iName.