Raised This Month: $ Target: $400
 0% 

how to prevent registerhamfromentity being called for whole classname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 11-12-2014 , 10:35   Re: how to prevent registerhamfromentity being called for whole classname
Reply With Quote #1

Hamsandwich registers callbacks on entity classes, always. RegisterHamFromEntity gets the virtual table from an entity, but still registers the callback on the whole class of that entity. Registering a Ham callback on a single entity is not possible, and you have to do such filtering in your plugin code. Registering from two different entities that have the same class will register two callbacks onto that class, and as such the callback will be called twice. All of this is expected with the design of Hamsandwich.
__________________
In Flames we trust!
Nextra is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode