1415 {
1417
1419 if (doPhxImpulse)
1421
1423 vector targetDirection = GetDirection();
1424 vector toSourceDirection = (pSource.GetPosition() -
GetPosition());
1425
1426 targetDirection[1] = 0;
1427 toSourceDirection[1] = 0;
1428
1431
1432 float cosFi = vector.Dot(targetDirection, toSourceDirection);
1433 vector cross = targetDirection * toSourceDirection;
1434
1435 pAnimHitDir = Math.Acos(cosFi) * Math.RAD2DEG;
1436 if (cross[1] < 0)
1437 pAnimHitDir = -pAnimHitDir;
1438
1439 return true;
1440 }
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto float Normalize()
Normalizes vector. Returns length.
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition