DayZ 1.24
Loading...
Searching...
No Matches
CCTCursorNoObject.c
Go to the documentation of this file.
2{
3 protected float m_MaximalActionDistanceSq;
4
9
10 override bool Can(PlayerBase player, ActionTarget target)
11 {
12 if (!target)
13 return false;
14
15 if (GetGame().IsServer() && GetGame().IsMultiplayer())
16 return true;
17
20
21 float distanceRoot = vector.DistanceSq(target.GetCursorHitPos(), player.GetPosition());
22 float distanceHead = vector.DistanceSq(target.GetCursorHitPos(), playerHeadPos);
23
25 }
26};
override bool Can(PlayerBase player, ActionTarget target)
void CCTCursorNoObject(float maximal_target_distance)
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native CGame GetGame()