View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-26-2021 , 16:57   Re: [L4D2] Tank hits multi players with one punch in Coop?
Reply With Quote #16

Quote:
Originally Posted by Crasher_3637 View Post
MT has its own simple patching system that I implemented before finding out about SourceScramble.
Those looks quite convenient. Nice work
Also, thanks for detours description )) Will be useful for me at some point.

Harry, nice idea! Love it.

Forgetest, thanks for your work. L4D1 is tested and not functioning. It has completely different prototypes with arguments based on custom registers. Also, L4D1 Linux doesn't call those sig. It uses a [clone] function overload which, BTW, IDA provides an incorrect signature for. So, if somebody happened the same, here are I parsed full list of the correct NIX sigs for L4D1/2.

I updated the gamedata and code for L4D1 Nix.
As for Windows, I didn't completely find out which CC is correct. DHook failed. I leave it closest to the correct as I think. Its prototype:
Code:
/* WIN: __userpurge CTankClaw::SweepFist@<eax>(_BYTE *a1@<ecx>, CTerrorWeapon a2@<edi>, int a3, int a4, float *a5) */
/* NIX: __usercall CTankClaw::SweepFist(CTerrorWeapon *a1@<eax>, float *a2@<edx>, float *a3) [clone] */
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-29-2021 at 07:24.
Dragokas is offline