Retriving keyvalues
Hello,
First of all, this is what i would like to accomplish:
Now, in a new project for Sven Co-op, there is a loophole where keyvalue data can be changed through certain entities native to Sven Co-op. Such as:
Should such an entity be triggered i become blind to the fact that the keyvalue data of its target is different from when i last retrieved it; as my local cache of the target entity is now different from reality. Now i am asking for your help. Is there another way of retrieving keyvalues, maybe directly from the engine? Could it be possible to hook the function these entites use to change keyvalue data? Even getting just the value when you already know the key would be somewhat useful. Thank you for your time. |
Re: Retriving keyvalues
Does this works?
https://forums.alliedmods.net/showth...11304?p=511304 |
Re: Retriving keyvalues
I wrongfully specified i hooked FM_SetKeyValue in my original post, which has been updated.
PHP Code:
|
Re: Retriving keyvalues
Quote:
So, you would probably have to hook Ham_KeyValue for all entities, or use, say Orpheu, to hook the function which these 2 entities use. |
Re: Retriving keyvalues
Thank you for your input Klippy, and i do believe you are correct.
I've succesfully hooked ::Keyvalue() on a func_door as a test and when changing, for example, the wait key everything goes smoothly. However, some other keys such as speed or angles does seemingly not use the func_door's ::Keyvalue() function. Any reason why some keys would get set differently? |
| All times are GMT -4. The time now is 09:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.