Quote:
Originally Posted by Zynda
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.