1057 {
1059 {
1060 bool found = false;
1062 float distance;
1063 foreach( Man player : ClientData.m_PlayerBaseList )
1064 {
1065 vector target_player = player.GetPosition();
1066 distance = vector.Distance( head_pos, target_player );
1067
1068 target_player[1] = target_player[1] + 1.2;
1069
1071 {
1074 RaycastRVParams params =
new RaycastRVParams( head_pos, end_pos,
GetGame().
GetPlayer(), 0 );
1076
1077 array<ref RaycastRVResult> results = new array<ref RaycastRVResult>;
1078 DayZPhysics.RaycastRVProxy( params, results );
1079 if( results.Count() > 0 )
1080 {
1081 if( results.Get( 0 ).
obj == player )
1082 {
1084 found = true;
1085 }
1086 }
1087 }
1088 }
1089 if( !found )
1090 {
1092 }
1093 }
1094 }
proto native vector GetScreenPosRelative(vector world_pos)
Transforms position in world to position in screen in percentage (0.0 - 1.0) as x,...
proto native vector GetCurrentCameraPosition()
proto native vector GetCurrentCameraDirection()
PlayerBase m_CurrentTaggedPlayer
bool sorted
used only if groundOnly = false
Object obj
Object inside of box.
proto native CGame GetGame()