Raised This Month: $ Target: $400
 0% 

RegisterHam on several entity classes?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-27-2016 , 12:16   Re: RegisterHam on several entity classes?
Reply With Quote #5

Quote:
Originally Posted by Shattered Heart Lynx View Post
If I recall correctly if you register it on monster_headcrab, it will register on every entity derived from CBaseMonster.
I believe you want "linked to" here, not "derived from" as it can be misleading. By saying "derived from CBaseMonster" one could think that every class that derives from CBaseMonster will have its virtual functions hooked too, which is not the case.
For instance, CSquadMonster and CCycler have their own virtual tables even though they derive from CBaseMonster.

Just to make things clear.
klippy is offline
 



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 18:42.


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