How do you get an ents key values in Fakemeta's FM_KeyValue?
Can someone please explain how to use Fakemeta to get key values from the FM_KeyValue forward (without using the Engine module). I've tried to use get_kvd, which I probably used incorrectly. But I also noticed in the include it said on FM_KeyValue "-- does't work as of 0.20 RC2", though it seems to work as that part of the code gets run.
I wrote this up really quick so you can see what im asking for (not exactly what I'm doing but close enough): Code:
|
I tried to pass actual handle, global handle and couldn't retrieve kvdata as well. Probably a bug.
|
Can you tell me what the actual global handle is as I do not know what kvd_handle is supposed to be exactly...
Can anyone else please attempt to see if the can get it to work or use a different method with fakemeta (Rukia, Damaged Soul or Orangutanz), so that i don't feel like I'm trying to do something that can't be done... and thanks for trying VEN, just glad to know I wasn't the only one. |
By the analogy to dllfunc, hook should also pass a handle in the second parameter. I tried global (0) handle and one which passed to the hook without success.
if KV_fHandled value is true that means that the game mod understood a given kvdata. I showed thal link to faluco and he said he will see later. EDIT: Tried pre/post hook, global/specific handle w/o success. |
Yea I didn't realize FM_KeyValue forward was passing a second parameter, the handle (or id of the kvd, at least i think that's what it is?). Bail explained this to me and I added the second parameter into the function which cleared up everything.
I changed: public check_keyvalues(entid) to public check_keyvalues(entid, kvd_id) then got the get_kvd natives to work using kvd_id as the kvd_handle... thx VEN... and Bailopan. |
| All times are GMT -4. The time now is 16:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.