What's new

Solved (REQUEST) aimbot code assigned to dpad down

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

DEREK-TROTTER

Enthusiast
Messages
342
Reaction score
375
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:
 
D

DEREK-TROTTER

Enthusiast
Messages
342
Reaction score
375
thanks for all the support lol
 
K

Kjaer

Enthusiast
Messages
163
Reaction score
17
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!
 
C

CrAzY FaIrYHoPn

FairyHopn' All Day
Retired
Messages
3,452
Reaction score
1,907
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();
 
M

MaGiicK MoDzZ

Enthusiast
Messages
371
Reaction score
36
Yeah definately use FaIrYHoPn's code, hes a pro
 
K

Kjaer

Enthusiast
Messages
163
Reaction score
17
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.
 
C

CrAzY FaIrYHoPn

FairyHopn' All Day
Retired
Messages
3,452
Reaction score
1,907
T4k3 T3h J0k3 Y3sh
 
Status
Not open for further replies.
Top Bottom