Function updating the position of the tracker widget.
Currently tracks using GetScreenPos() on the position of the player.
См. определение в файле CTObjectFollower.c строка 90
91 {
92 vector relativePos;
93
95
96 if( relativePos[0] >= 1 || relativePos[0] == 0 || relativePos[1] >= 1 || relativePos[1] == 0 )
97 {
99 return;
100 }
101 else if( relativePos[2] < 0 )
102 {
104 return;
105 }
106 else
107 {
109 }
110
113
115 }
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 CGame GetGame()
Перекрестные ссылки GetGame(), GetPosition, CGame::GetScreenPosRelative(), m_FollowerRoot, x и y.
Используется в SetPosition(), SetRotation() и Update().