Register for your free account! | Forgot your password?

You last visited: Today at 18:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Aimbot

Discussion on [Help] Aimbot within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 7
Received Thanks: 1
[Help] Aimbot

Can anyone explain how I would go about creating like a command to enable aimbotting.

Or Just to have a like scentsword fire whenever the target is on the screen
JehovahzWitness is offline  
Old 01/03/2012, 06:26   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Well I'm going to ASSUME you're not posting in the complete wrong section AND asking incorrectly. If that's the case you wish your private server (which is non binary server) to have a command to let gm's use aimbot.

There's plenty of ways you could write it but here's some simple starting points...

Inside player class (regardless what it's called in your source), hold a target ID or a entity object as target.

Eg:

public uint AimbotTarget = 0;


In command do something like...

if(user.Permission < Permissions.PlayerHelper)
{
user.SendMessage("You do not have permission to use aimbot!");
break;
}
Player targ;
PlayerLookup(data[1], out targ);
if(targ == null)
{
user.SendMessage("No Such Player Found: " + data[1])
break;
}
user.AimbotTarget = targ.UID;
user.SendMessage("Target Acquired: Targeting player " + targ.Name);
if(Calculations.Distance(user, targ) < 10)
ProcessAttack(new Packet.InteractPacket{Action = Magic, Target = targ.UID, PositionX = targ.X, PositionY = targ.Y, ID = user.UID});


Then write something into your threading system (I'd put in your attack thread...)

foreach(Player p in Kernel.Clients.Values)
{
if(p.AimbotTarget != 0)
{
if(!kernel.Clients.ContainsKey(p.AimbotTarget)
{
p.AimbotTarget = 0;
continue;
}
Player targ = Kernel.Clients[p.AimbotTarget];
//I'd check to make sure client is REALLY connected just incase there was collection issue. If not connected remove from kernel.Clients
if(Calculations.Distance(user, targ) > 10)
continue;
ProcessAttack(new Packet.InteractPacket{Action = Magic, Target = targ.UID, PositionX = targ.X, PositionY = targ.Y, ID = user.UID});
}
}


Now... obviously this is not real code. I just pulled it out of my *** with no real consideration for efficiency or error checking...


You'd need to write all the required methods such as PlayerLookup and most likely your packets/methods all take different params then mine. Example is loosely based around albetros.
pro4never is offline  
Old 01/03/2012, 13:33   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by pro4never View Post
....
Now... obviously this is not real code. I just pulled it out of my *** with no real consideration for efficiency or error checking...
...
Yoda mode:
Intressting things you put into your ***
Y u k i is offline  
Thanks
1 User
Reply




All times are GMT +2. The time now is 18:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.