[ASSAULTCUBE] Hack Tutorials
Nice TuT,I think i'll start with this as my first bot
Hey for some weird reason i modified the source and nothing happened. Am i to re compile? or what. Or is it just because im on a mac :P
I'm relatively new to C++, and I've been dabbling in a few things, but this I don't understand... I know that we have to declare that identifier (bestdist) But i don't exactly understand HOW to do this... I would be grateful if anybody could explain this to me, and thanks for these awesome tut's! I learned a lot from them...
The game is open source(I think). So he's showing you what to add/replace in the source to make this work.
I THINK!
I THINK!
Ok, so I decided to go ahead and place
underneath
I then compiled and replaced the ac_client.exe... Not exactly. I'm complicated. I compiled ac_client.exe and I renamed it ac_client_hacked.exe, then edited assaultcube.bat to point to the hacked .exe. It loads, but when I shoot, it crashes. Any suggestions? Is it because it's called ac_client_hacked.exe? I'm gonna go try and just name it ac_client.exe... THat's not the reason, I tried with both names both times i crash when I shoot.
Code:
int bestdist = 50;
Code:
float lastdist = 0.0f;
ive never seen the code but i assume.
Code:
float bestdist = 50f;
When I try
i get this error before even getting to compile it:
Code:
float bestdist = 50f;
Code:
1>C:\custom_aimbot_test\assaultcube_v1.0.4-source\source\src\renderhud.cpp(8) : error C2059: syntax error : 'bad suffix on number' 1>c:\custom_aimbot_test\assaultcube_v1.0.4-source\source\src\renderhud.cpp(8) : error C2146: syntax error : missing ';' before identifier 'f' 1>c:\custom_aimbot_test\assaultcube_v1.0.4-source\source\src\renderhud.cpp(8) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
it crashes if you shoot before the game made enemies for you(so play against bots or go online before shooting).
the reason it crashes is because the enemy list isnt yet located, so basicly your trying to acces a NULL pointer ^^
the reason it crashes is because the enemy list isnt yet located, so basicly your trying to acces a NULL pointer ^^
what are those .bat files? are they some kind of autoshutdown.bat files?
heheh...just asking..sorry...
heheh...just asking..sorry...
No. They're not "Autoshutdown.bat" Files. They are the bat files that configure ac_client.exe to run.
And yes. You're right. I didn't realize that! When there's no players, i crash. Thanks for telling me that, I was worried I was completely botching all of my coding xD
Edit: is there a way to make it so that you DON'T shoot through the wall? I can't figure it out...
And one more question. would setting the bestdist to 0 target the closest person to me? or would it not target anybody... OK I lied. I have one more question. Is there away to JUST target anybody in my reticule? When I shoot, it shoots someone through a crate (who was not whom I was targeting)
1. Use keytoggles(or chattoggles if you know how to) and use an if/else statement to see if you want to shoot the closest person, or just fire a normal shot.
2. Bestdistance should be set to something high, since all it does it keep track of the last found closest player in the loop.
e.g.
bestdist starts at 99999.9f
player 1 is 1337 units away(bestdist = 1337 now)
player 2 is 500 units away(bestdist = 500)
player 3 is 750 units away(bestdist = 500, because hes further away then the last checked player).
so setting it to 0 would mean it targets noone.
3. Compare the aimbot angles for every player to your current viewangles, closest to your view angles be the one you're aiming for(dont forget teamchecks :P)
2. Bestdistance should be set to something high, since all it does it keep track of the last found closest player in the loop.
e.g.
bestdist starts at 99999.9f
player 1 is 1337 units away(bestdist = 1337 now)
player 2 is 500 units away(bestdist = 500)
player 3 is 750 units away(bestdist = 500, because hes further away then the last checked player).
so setting it to 0 would mean it targets noone.
3. Compare the aimbot angles for every player to your current viewangles, closest to your view angles be the one you're aiming for(dont forget teamchecks :P)
This thread is closed for replies.

Good job and I hope you stick around these forums 