What's new

Discussion [RELEASE] Teleport to Crosshairs

  • Thread starter Su AriZonaa
  • Start date
  • Views 1,683
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
Well I told andrew to make a topic and he said no so I decided to make one. This works 100% just like the one in MW2 and Cod4. Andrew74 Made this! Shortened by lost4468

Thread this
Code:
TeleportFTW()  
{  
self endon ( "death" );  
for(;;)  
{  
self waittill ( "weapon_fired" );  
if( self GetStance() == "prone" )  
{      
self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000, 0, self )[ "position" ]);  
self iPrintlnBold( "Teleport 1337 HaX!" );  
}  
}  
}
 
A

Andrew74

Enthusiast
Messages
824
Reaction score
219
Well I told andrew to make a topic and he said no so I decided to make one. This works 100% just like the one in MW2 and Cod4. Andrew74 Made this!

Thread this
Code:
TeleportFTW()

Put this in the gsc.
Code:
TeleportFTW() 
{ 
self endon ( "death" ); 
for(;;) 
{ 
self waittill ( "weapon_fired" ); 
if( self GetStance() == "prone" ) 
{ 
forward = self getTagOrigin("j_head"); 
end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000); 
CrossHairs = BulletTrace( forward, end, 0, self )[ "position" ];   
self setorigin( CrossHairs ); 
self iPrintlnBold( "Teleport 1337 HaX!" ); // error is here
} 
} 
}

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}

fixed an error in the print
 
L

Lost4468

Contributor
Messages
2,202
Reaction score
1,760
Fixed and shortened.

Code:
TeleportFTW() 
{ 
self endon ( "death" ); 
for(;;) 
{ 
self waittill ( "weapon_fired" ); 
if( self GetStance() == "prone" ) 
{     
self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000, 0, self )[ "position" ]); 
self iPrintlnBold( "Teleport 1337 HaX!" ); 
} 
} 
}
 
K

kreiger3750

Enthusiast
Messages
276
Reaction score
20
Fixed and shortened.

Code:
TeleportFTW() 
{ 
self endon ( "death" ); 
for(;;) 
{ 
self waittill ( "weapon_fired" ); 
if( self GetStance() == "prone" ) 
{     
self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000, 0, self )[ "position" ]); 
self iPrintlnBold( "Teleport 1337 HaX!" ); 
} 
} 
}
Owned :tongue: ; but anyway this is old stuff but still good
 
A

Andrew74

Enthusiast
Messages
824
Reaction score
219
Fixed and shortened.

Code:
TeleportFTW() 
{ 
self endon ( "death" ); 
for(;;) 
{ 
self waittill ( "weapon_fired" ); 
if( self GetStance() == "prone" ) 
{     
self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000, 0, self )[ "position" ]); 
self iPrintlnBold( "Teleport 1337 HaX!" ); 
} 
} 
}

+rep for my buddy Lost!
 
Top Bottom