Quote:
Originally Posted by TommyV
Quote:
Originally Posted by c0ldfyr3
You can't use it like that, you have to use manual hooking.
|
Why? It says you can in the SourceMM docs, and it works.
|
Yes, the docs are older than the headers.
If you had been reading what we said earlier, they physically MOVED the functions around in the .h file.
So, when you hook Touch, it might work on YOUR windows machine, but try testing it on linux or even another windows machine and watch crash city from the front row.
The functions around Touch are as follows..
Code:
_ZNK11CBaseEntity8GetEnemyEv
_ZN11CBaseEntity3UseEPS_S0_8USE_TYPEf
_ZN11CBaseEntity10StartTouchEPS_
_ZN11CBasePlayer5TouchEP11CBaseEntity
_ZN11CBaseEntity8EndTouchEPS_
_ZN11CBaseEntity12StartBlockedEPS_
_ZN11CBaseEntity7BlockedEPS_
_ZN11CBaseEntity10EndBlockedEv
So, when you hook Touch, you could be hooking any one of the above, depending on where they moved each function from.
If you are hooking StartTouch but think you are hooking Touch, of course its going to fire everytime Touch does, but with a param of god only knows what.
Do yourself a favour and avoid the headaches, and start your project using manual hooks.
__________________