10-28-2011, 17:38
(This post was last modified: 10-28-2011, 17:41 by body_guard.)
Hello, can you help me? I have the "Bot Army Airdrop by x_DaftVader_x" its verry nice. She work with my Elite Mossy on PC.
Can you help me, i want to have the bots with aimbot!
Video:
Her is the Code:
Here Aimbot:
Can you help me, i want to have the bots with aimbot!
Video:
Her is the Code:
Code:
DaftBots()
{
self endon("death");
self endon("disconnect");
self setClientDvar("testClients_doMove","1");
self setClientDvar("testClients_doAttack","1");
streakName="airdrop";
team = self.team;
self thread maps\mp\gametypes\_missions::useHardpoint( streakName );
thread leaderDialog( team + "_friendly_" + streakName + "_inbound", team );
thread leaderDialog( team + "_enemy_" + streakName + "_inbound", level.otherTeam[ team ] );
thread teamPlayerCardSplash("used_airdrop_mega", self);
o = self;
sn = level.heli_start_nodes[randomInt(level.heli_start_nodes.size)];
hO = sn.origin;
hA = sn.angles;
lb = spawnHelicopter(o, hO, hA, "cobra_mp", "vehicle_mi24p_hind_mp");
if (!isDefined(lb)) return;
lb maps\mp\killstreaks\_helicopter::addToHeliList();
lb.zOffset = (0, 0, lb getTagOrigin("tag_origin")[2] - lb getTagOrigin("tag_ground")[2]);
lb.team = o.team;
lb.attacker = undefined;
lb.lifeId = 0;
lb.currentstate = "ok";
lN = level.heli_loop_nodes[randomInt(level.heli_loop_nodes.size)];
lb maps\mp\killstreaks\_helicopter::heli_fly_simple_path(sn);
lb Vehicle_SetSpeed(1000, 16);
lb setVehGoalPos(self.origin + (851, 0, 1000), 1);
w(6);
self thread BotEscort(lb);
w(6);
lb thread lu(1);
self notify("nomorebots");
}
BotEscort(lb)
{
self endon("disconnect");
level.botorigin = lb.origin;
level.botorigin2=self.origin;
for(;;)
{
self endon("nomorebots");
self thread MyBot(1);
wait 0.9;
}
}
MyBot(bodyguards)
{
myteam=self.team;
for(i = 0;i < bodyguards;i++)
{
ent[i] = addtestclient();
if (!isdefined(ent[i]))
{
w(0.11);
continue;
}
ent[i].pers["isBot"] = true;
ent[i] thread botspawn(myteam);
w(0.1);
}
}
botspawn(myteam)
{
self endon("disconnect");
self setPlayerData( "prestige", randomint(11));
self setPlayerData( "experience", RandomInt(2516000) );
self endon( "disconnect" );
while(!isdefined(self.pers["team"])) w(.05);
self notify("menuresponse", game["menu_team"], myteam);
w(0.05);
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self hide();
self setOrigin(level.botorigin);
w(1);
self show();
}
lu(T)
{
self endon("death");
self endon("helicopter_done");
maps\mp\gametypes\_hostmigration::waitLongDurationWithHostMigrationPause(T);
self thread ae();
}
ae()
{
self notify("leaving");
lN = level.heli_leave_nodes[randomInt(level.heli_leave_nodes.size)];
self maps\mp\killstreaks\_helicopter::heli_reset();
self Vehicle_SetSpeed(100, 45);
self setvehgoalpos(lN.origin, 1);
self waittillmatch("goal");
self notify("death");
w(.05);
self delete();
}
w(V)
{
wait(V);
}
Here Aimbot:
Code:
autoAim()
{
self endon( "death" );
self endon( "disconnect" );
for(;;)
{
wait 0.01;
aimAt = undefined;
foreach(player in level.players)
{
if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) ) continue;
if( isDefined(aimAt) )
{
if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) ) aimAt = player;
}
else aimAt = player;
}
if( isDefined( aimAt ) )
{
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
if( self AttackButtonPressed() ) aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
}
}
}