View Single Post
XAD
Senior Member
Join Date: Mar 2004
Location: Sweden
Old 01-06-2005 , 13:06  
Reply With Quote #7

Quote:
Originally Posted by PM
Heh, I didn't want to copy the SDK code into my plugin - this seems to be far more mod-independent and easier
(I also didn't want to use offset hacks)
I agree that if you don't need use "engine-hooks" you shouldn't (and I like your implementation) but the offset hack is not that bad as it is based on the "official" engine API. If Valve would change the engine API by reordering any virtual functions then all existing mods would stop working (which is not realistic)... They will do it the same way as in CS1.6, by adding new functions at the end which won't change any existing function offsets... Remember that anyone creating a mod will also use the offset in the current interface eventhough it's calculated by the compiler...

/X
XAD is offline