PDA

View Full Version : Question Get UserCmd without hooking?



SyntaxX
06-05-2010, 12:53 PM
Hey,

Is it possible to access UserCmd without hooking of CreateMove ?
I wanted to create a simple hack just with one hook at PaintTraverse but for some features I need to have the access to UserCmd.

Thank you.

TheCore
06-05-2010, 01:13 PM
For what features? Maybe we can show you a way to do it without (;

SyntaxX
06-05-2010, 02:16 PM
norecoil, nospread(not that important), autoshoot for example :)

Badster
06-06-2010, 04:32 AM
Of course it is, you would just need some way of getting it or the sequence_number.

SyntaxX
06-06-2010, 04:55 AM
Mhm... I thought about hooking createmove and then storing the sequence_number and unhook it right after but I dont like this hook/unhook things.

The Acid
06-06-2010, 05:28 AM
You could use panels instead of PaintTraverse hook, that way you would have no hooks :D

SyntaxX
06-13-2010, 05:55 AM
no Idea guys ?

syntroniks
06-13-2010, 08:09 AM
getusercmd is a relatively static function. It does some math on sequence_number to get you the correct command. Potentially you could be looking at all 90 usercmds, but.... you might find something by analyzing that function

Use HWBP instead of hook then :-0

Panels truly are easy, you know ;-)

lev1ath4n
06-13-2010, 10:27 AM
*cough* search is all you need

http://forum.gamedeception.net/threads/9952-Using-CUserCmd-outside-of-CreateMove

copymark
06-13-2010, 01:34 PM
@leviathan
and how do you get the current sequence number without hooking create move??!??

wav
06-28-2010, 05:21 AM
@leviathan
and how do you get the current sequence number without hooking create move??!??

read it from engine.dll