HelpKnfing Function Offset?

Posts 1–11 of 11 · Page 1 of 1
Knfing Function Offset?
Hi!
Does anybody know about a knifing function?
It changes from version to version. Ask Geomatrical how he found it then you can make a pattern for find it for older/newer versions.
Knifing function? Do you mean the command handler or what?
Quote Originally Posted by rawr im a tiger View Post
Knifing function? Do you mean the command handler or what?
I mean the function which gets called when you use the knife. My first thought was to simulate a key press, but that's not really a clen way :S
Quote Originally Posted by KeksOfDeath View Post
I mean the function which gets called when you use the knife. My first thought was to simulate a key press, but that's not really a clen way :S
Im guessing modifying input_t or something like that.
CE ftw man.

Funny Way:
Shoot, scan for 1, stop shooting, scan for 0, do it over and over and you'll get the input_t struct. Inside it is almost every control.. including, ofc, the knifing one.

 
Not Funny way

Copypaste this:
Code:
typedef struct{
	BYTE Active;
	BYTE Pressed;
	char padding[18];
}Key;

typedef struct{
	char unk1[216];
	Key Jump;
	char unk2[60];
	Key Shoot;
	Key HoldBreath;
	char unk3[20];
	Key Lethal;
	Key Tactical;
	Key Knife;
	Key Use;
	Key Reload;
}Input_t;
Offset for 1.9.453 I guess: 0xC14630

Credits to /me
How did you shoot and scan?
Quote Originally Posted by archit View Post
How did you shoot and scan?
lol Shoot, press Esc. The game will pause then you can scan... Press Esc again, it'll un-pause and stop shooting, so you scan for 0 now. :P Scan for Byte btw
Quote Originally Posted by MarkHC View Post
lol Shoot, press Esc. The game will pause then you can scan... Press Esc again, it'll un-pause and stop shooting, so you scan for 0 now. :P Scan for Byte btw
Just wondering, did you find the input_t address for Tekno/IW5M?
How did you auto-shoot?
Code:
if(isShooting) *(BYTE*)IsShooting = 1; else *(BYTE*)IsShooting = 0;
Quote Originally Posted by Kenshin13 View Post
Just wondering, did you find the input_t address for Tekno/IW5M?
How did you auto-shoot?
Code:
if(isShooting) *(BYTE*)IsShooting = 1; else *(BYTE*)IsShooting = 0;
Well.. yeah.. Don't understand your question :S The IsShooting is the Shoot field on the struct that I posted above...
But for the IW5M/Tekno do you have the offset for the input_t or the actual offset for the shooting?
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us