Americas Army 2:Lasers

From UnKnoWnCheaTs Game Hacking Wiki
Jump to: navigation, search

By: DarkPnkX

Source: http://www.unknowncheats.me/forum/283786-post1.html



function Laser (Pawn target) 
{ 
local vector VStart,VEnd; 
local int R,G,B; 

VStart = Target.GetBonecoords('Head').Origin; 
VEnd = VStart + 300 * Vector(Target.Rotation); 

if (Target.PlayerReplicationInfo.Team.TeamIndex != MyController.PlayerReplicationInfo.Team.TeamIndex) 
{ 
R = 255; G = 0; B = 0; 
}else{ 
R = 0; G = 255; B = 0; 
} 
MyController.DrawDebugLine( VStart, VEnd, R, G, B); 
}


then add this to pawnrelated

Laser(TargetPawn)


example:

http://img248.imageshack.us/my.php?image=laser6uo.jpg __________________