Raised This Month: $ Target: $400
 0% 

Retriving keyvalues


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-10-2016 , 00:52   Re: Retriving keyvalues
Reply With Quote #4

Quote:
Originally Posted by Zynda View Post
I wrongfully specified i hooked FM_SetKeyValue in my original post, which has been updated.
PHP Code:
From kve.sma

register_forward
(FM_KeyValue"on_key_value"); 
It uses the same forward - FM_KeyValue. I doubt it will be of much help.
That hook is executed when the game engine calls DispatchKeyValue() in mod DLL. That happens for entities which are read from BSP. These 2 entities probably don't use the same function to change keyvalues, they most likely call ::KeyValue() virtual function on the targeted entity.
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.
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 09:29.


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