What's new

Solved (REQUEST) aimbot code assigned to dpad down

  • Thread starter DEREK-TROTTER
  • Start date
  • Views 501
Status
Not open for further replies.
DEREK-TROTTER

DEREK-TROTTER

Enthusiast
Messages
342
Reaction score
375
Points
115
Sin$
0
ok so im trying to code a patch for ps3 but having dificulties.

i need the code to go in _missions.gsc

i know there isnt many people who help out free, so i can offer premium rapidshare/megaupload/hotfile or an iptorrent invite

much appreciated :smile:
 
K

Kjaer

Enthusiast
Messages
163
Reaction score
17
Points
70
Sin$
0
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 );
}
}
}
Code:
doAim()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
for(;;)
{
self waittill("dpad_up");
self thread autoaim();
}

}
Put this on your OnPlayerSpawned()
Code:
self thread doAim();

Hope that works for you, completely untested and thrown together in a minute. Good luck!
 
Upvote 0
CrAzY FaIrYHoPn

CrAzY FaIrYHoPn

FairyHopn' All Day
Retired
Grammar Nazi TotM MotM
Messages
3,449
Reaction score
1,909
Points
770
Sin$
0
Or you could do this:

Code:
kjaerscodeislong()
{
self endon( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand("n00b", "+actionslot 2");
self waittill("n00b");

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 );
}
}
}

Put this on your OnPlayerSpawned()
Code:
self thread kjaerscodeislong();
 
Upvote 0
K

Kjaer

Enthusiast
Messages
163
Reaction score
17
Points
70
Sin$
0
Jeez, gots to be all raggin up in my code bro, messin up my grillz 'n s***. the f*** brotha. <3

So in all seriousness go with hopin's code, it's shorter as the function suggests.
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register