# SolvedAssaultCube recoil

#### Computrix

##### Newbie
Hi guys. Tell me please how did you find offset recoil? I was able to find all the other major offsets, except recoil.

#### Rake

Hi guys. Tell me please how did you find offset recoil? I was able to find all the other major offsets, except recoil.

Last edited:

#### Computrix

##### Newbie
Thank you so much.

#### cmrincon

Full Member

What i did to find the recoil was:

1 Get my Player object

2 Browse the object memory and search for any change when i shoot. Tip: change the data type representation to float.

3 After last step you can know that there is a X coord recoil, Y coord recoil, Z coord recoil and pitch recoil. This means that when you shoot the player moves back as the croshair moves up. You have to find theese 4 float values.

4 When you find these values, is not enough to nop the instruction: noping the instruction makes the game unplayable.
As the instruction to assemble is FSTP, you must write in another memory address and not write to recoil addresses because FSTP pops FPU registers.
FSTP instruction

That's all. I hope this helps anyone who googled about the topic like i did.

Chucky

#### Chucky

##### Troublemaker
Meme Tier VIP
Trump Tier Donator

What i did to find the recoil was:

1 Get my Player object

2 Browse the object memory and search for any change when i shoot. Tip: change the data type representation to float.

3 After last step you can know that there is a X coord recoil, Y coord recoil, Z coord recoil and pitch recoil. This means that when you shoot the player moves back as the croshair moves up. You have to find theese 4 float values.

4 When you find these values, is not enough to nop the instruction: noping the instruction makes the game unplayable.
As the instruction to assemble is FSTP, you must write in another memory address and not write to recoil addresses because FSTP pops FPU registers.
FSTP instruction

That's all. I hope this helps anyone who googled about the topic like i did.
Agreed.
If the stack is not balanced on exit from an assembly code block, program execution is likely to resume at the wrong address and instantly crash.

#### cmrincon

Full Member
Agreed.
If the stack is not balanced on exit from an assembly code block, program execution is likely to resume at the wrong address and instantly crash.
I was not talking about process stack. I was talkimg about the Floating Point Unit stack. There are no return addresses in the FPU.

Instead in the fpu there are float values which must be pop out from the (FPU) stack in the right order

Sy3kn0m

#### Amir

Dank Tier Donator
Thank you

Sofaknuddler
Attention! Before you post:

99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

• Fill out the form correctly
• Tell us the game name & coding language