Re: [C++] Changing gravity
Very Nice ;)
C++ FTW!
p.s First XD
Re: [C++] Changing gravity
Great job. This is quite pro. now lets make it auto inject! ;p
Re: [C++] Changing gravity
Quote:
Originally Posted by
XZeenon
Great job. This is quite pro. now lets make it auto inject! ;p
No point making it auto-inject how it is right now, it gives everyone the same gravity (0.1). Once I get it parsing the room names, then it'll be useful.
Now that I know how to write DLLs and hook functions on a basic level though, there are a few things I want to try to write. Nothing malicious, just fun, game enhancers :P
Re: [C++] Changing gravity
Dumb question here, but which program should I use to compile it?
Dev-Cpp or Visual C++ 2005 Express?
I'm planning to test this.
Re: [C++] Changing gravity
Visual C++ 2005 Express Edition is a good one :D
But also Dev-Cpp for quickness.
Re: [C++] Changing gravity
I dunno, I use Visual Studio 2005, never tried anything else. Keep in mind you also need the Windows SDK installed as well to include windows.h.
Re: [C++] Changing gravity
Wait, what does this dll do?
Does it lower gravity? or Make gravity force strongeR?
Re: [C++] Changing gravity
very nice, so all we have to do right now is inject in-game?
Re: [C++] Changing gravity
Re: [C++] Changing gravity
Quote:
Originally Posted by
Team Zebra
I dunno, I use Visual Studio 2005, never tried anything else. Keep in mind you also need the Windows SDK installed as well to include windows.h.
Done that, but it's giving me problems about finding Stdafx.h.
Re: [C++] Changing gravity
Very nice.
Linear88, have you added "#include "Stdafx.h" above the other includes?
Quote:
/*
Author - Team Zebra
main.cpp - main code for our DLL.
*/
#include "Stdafx.h"
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#include <stdio.h>
#include <windows.h>
#include "detours.h"
#include "addresses.h"
#pragma comment(lib, "detours.lib")
Edit: Quick question, how do you avoid the crappy wallrun? What is the normal value?
Re: [C++] Changing gravity
I haven't tested it out, but I'm gonna assume the original value is 1.0.
Re: [C++] Changing gravity
I have tried nothing changed :S
Re: [C++] Changing gravity
The original is 1.0, but wallrun still works badly.