View previous topic :: View next topic |
Author |
Message |
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Wed Dec 31, 2014 2:22 Post subject: Hey Terra: Void NextFunc? |
|
|
Is it possible to do
Code: |
CreateHook( SummonFamiliarLoc, CNWSCreature__SummonFamiliar, (PVOID*) NULL, "SummonFam","SummonFam");
|
Reason I am trying to null the 'Next' argument, is because I have re-written the entire Summon Familiar and Companion code - to match
https://github.com/jd28/nwnx2-linux/blob/ta/plugins/levels/hooks/h_SummonAnimalCompanion.cpp
This is to allow summon companion / familiar to function at levels 41+
So - if we have a working replacement function, do we need to attach a Next function?
Or do we simply attach it, and don't call the Next function from the hook?
I am assuming it still only gets called if the Next function is invoked from the hook - right? |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Wed Dec 31, 2014 3:17 Post subject: |
|
|
Just put a dummy in the hook function since it'll fail if its null. Then just never run next or do anything with it.
Code: |
DWORD nextproc;
CreateHook( SummonFamiliarLoc, CNWSCreature__SummonFamiliar, (PVOID*)&nextproc, "SummonFam","SummonFam"); |
_________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|