Come to think of it...
Yes, this should work, too. But it necessarily has to be a
Pre-Hook of TraceAttack. Because TraceAttack conducts several unrelated traces (blood calculation).
A simple test (vecEnd-vecSrc == 48.0) could confirm this.
Personally i am not really a fan of wrapping virtual class-functions. They could be broken very easily after an update.
Quote:
( The knife attack is based on the crowbar in the HLSDK, actually it would be exactly the same code )
|
I got accustomed to DIRECTLY look at the disassembly every time. Because it sometimes saves yourself much time of error searching...