View previous topic :: View next topic |
Author |
Message |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Thu Mar 10, 2016 3:36 pm Post subject: Integer into xmm? |
|
|
ok so I am making a camera cheat where it moves away from the car really far so you can basically see the whole map but I don't know how to make it work.
This is the original instruction:
Code: |
subss xmm0,[ecx]
mulss xmm2,xmm0
|
and if I change the subss to movss then what happens is the camera moves away so far that it seams like you went through a black tunnel and everything disappeared and after waiting 5 seconds the game crashes. What I want to do is move my preferred value into xmm0. How do I do that?
I was thinking of something along these lines:
Code: |
push ebx
mov ebx,(int)15
movss xmm0,[ebx]
pop ebx
mulss xmm2,xmm0
|
But after doing this the game just crashes. could someone please help me
|
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Thu Mar 10, 2016 3:57 pm Post subject: |
|
|
|
|
Back to top |
|
 |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Thu Mar 10, 2016 4:06 pm Post subject: |
|
|
What is "cvtsi2ss"? I was always wandering what it is
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
|
Back to top |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Fri Mar 11, 2016 10:36 pm Post subject: |
|
|
Code: |
Mulss xmm0,[new float table entry]
Mulss xmm2,xmm0. /// this the game code
|
Ebx is prolly still a float value.
_________________
|
|
Back to top |
|
 |
|