Raised This Month: $51 Target: $400
 12% 

IEntityListener::Create called twice?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Quimbo
Member
Join Date: May 2008
Old 08-08-2009 , 18:46   IEntityListener::Create called twice?
Reply With Quote #1

Hi!

I'm digging into C++ SM extensions and I did all the stuff to get LevelShutdown, gEntList offset and the sig for AddListenerEntity (on windows).

When I call AddListenerEntity for an instance of a class implementing IEntityListener the methods Spawn and Destroy seem to get called correctly while Create is called twice for each entity created.

Does anyone have a hint how to avoid this? Is this a problem in my code or the usual behaviour?
Are there any disadvatages to add my hooks in Spawn and not in Create?

Thanks!

EDIT: Oh and does someone happen to have a sig for CGlobalEntityList::RemoveListenerEntity? The method is odd, I wasn't able to reliably get a sig (AddListenerEntity was easy).

Last edited by Quimbo; 08-08-2009 at 19:00.
Quimbo 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 13:37.


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