1352 {
1354
1356 if (doPhxImpulse)
1358
1360 vector targetDirection = GetDirection();
1361 vector toSourceDirection = (pSource.GetPosition() -
GetPosition());
1362
1363 targetDirection[1] = 0;
1364 toSourceDirection[1] = 0;
1365
1368
1369 float cosFi = vector.Dot(targetDirection, toSourceDirection);
1370 vector cross = targetDirection * toSourceDirection;
1371
1372 pAnimHitDir = Math.Acos(cosFi) * Math.RAD2DEG;
1373 if (cross[1] < 0)
1374 pAnimHitDir = -pAnimHitDir;
1375
1376 return true;
1377 }
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