try that D:Code:if (GetAsyncKeyState(VK_SPACE) < 0) { *(float*)0x37967700 = 800; }else{ *(float*)0x37967700 = -1000; }
lmao when i release space i keep flying up. df?Code:if (GetAsyncKeyState(VK_SPACE) < 0) *(float*)0x37967700 = 750; else *(float*)0x37967700 = -1100;
try that D:Code:if (GetAsyncKeyState(VK_SPACE) < 0) { *(float*)0x37967700 = 800; }else{ *(float*)0x37967700 = -1000; }
Ehrmagerd, the unorganized BR code, IT BURNS.
Log the original float value for the address and assign it to a buffer then just set the buffer value back from the modified value when you're done. Also it's not -800, that's not a static float value, it's dynamic depending on which character you have. Hence the reason why you should always assign the default value to a buffer.
Reversing is the only way to move forward.
Otaviomorais (03-10-2014),pDevice (03-04-2014)
SecurityKos (03-18-2014)
that's weird... there's literally nothing wrong with your syntax and it still doesn't work? haha that's the most basic syntax xD
also @ the topic of the -800 for the default float value, that's because CA has 2 variables for gravity. The -800 is the original NOLF2 but they changed it to another variable which is the -1100
commando: You're probably the best non-coder coder I know LOL
Last edited by TokolocoSK; 03-04-2014 at 05:56 AM.
Hm, you should add a directx debug overlay so you can check it @ runtime
It should work, but you know theses guys sometimes take some hacks too seriously xD
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
J (03-04-2014)
wtf is wrong whit ur code ?Code:if( ( GetAsyncKeyState( VK_SPACE ) < 0 ) ) *( float *)address = 800; else ...
BTW you should use float values e.x. 750.0f and -1100.0f
Thats all I can see which 'could' be wrong with the code.
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
Yeah I used float values after I posted this thread. Still didn't work. But heres what I found:
This works but the 'off' value for the gravity isn't correct, it's noticably different ingame. (obviously):
BUT this does NOT (LOL it's like the gravity STILL stays at 750):Code:if (GetAsyncKeyState(VK_SPACE) < 0 && bFly) *(float*)Memory->ADDRESS_GRAVITY = 750.0f; else *(float*)Memory->ADDRESS_GRAVITY = -1000.0f;
Code:if (GetAsyncKeyState(VK_SPACE) < 0 && bFly) *(float*)Memory->ADDRESS_GRAVITY = 750.0f; else { *(float*)Memory->ADDRESS_GRAVITY = -1000.0f; *(float*)Memory->ADDRESS_GRAVITY -= 100.0f; }
Sigh. I guess for now I'll just set it to -1099.99f. It works and i dont even notice a difference.
LOL Dat engine XDD
Welcome to Lithtech
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
J (03-04-2014)
Last edited by arun823; 03-04-2014 at 06:42 PM.
Reversing is the only way to move forward.
J (03-04-2014)