mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Move spatial model translations to ace_common
This commit is contained in:
parent
11ad74735c
commit
4188893839
@ -178,6 +178,9 @@ PREP(useItem);
|
|||||||
PREP(useMagazine);
|
PREP(useMagazine);
|
||||||
PREP(waitAndExecute);
|
PREP(waitAndExecute);
|
||||||
|
|
||||||
|
PREP(translateToWeaponSpace);
|
||||||
|
PREP(translateToModelSpace);
|
||||||
|
|
||||||
// config items
|
// config items
|
||||||
PREP(getConfigType);
|
PREP(getConfigType);
|
||||||
PREP(getItemType);
|
PREP(getItemType);
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
PREP(rotateVectLineGetMap);
|
PREP(rotateVectLineGetMap);
|
||||||
PREP(rotateVectLine);
|
PREP(rotateVectLine);
|
||||||
|
|
||||||
PREP(translateToModelSpace);
|
|
||||||
PREP(translateToWeaponSpace);
|
|
||||||
|
|
||||||
PREP(fired);
|
PREP(fired);
|
||||||
|
|
||||||
PREP(guidancePFH);
|
PREP(guidancePFH);
|
||||||
|
@ -43,7 +43,7 @@ if(!isNil "_seekerTargetPos") then {
|
|||||||
|
|
||||||
_projectilePos = getPosASL _projectile;
|
_projectilePos = getPosASL _projectile;
|
||||||
|
|
||||||
_targetVectorSeeker = [_projectile, [_xVec, _yVec, _zVec], _profileAdjustedTargetPos] call FUNC(translateToWeaponSpace);
|
_targetVectorSeeker = [_projectile, [_xVec, _yVec, _zVec], _profileAdjustedTargetPos] call EFUNC(common,translateToWeaponSpace);
|
||||||
_targetVector = [0,0,0] vectorFromTo _targetVectorSeeker;
|
_targetVector = [0,0,0] vectorFromTo _targetVectorSeeker;
|
||||||
TRACE_1("", _targetVectorSeeker, _targetVector);
|
TRACE_1("", _targetVectorSeeker, _targetVector);
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ if(!isNil "_seekerTargetPos") then {
|
|||||||
// @TODO: Apply velocity multiplier to yaw/pitch. Basically, it can adjust faster at lower speeds
|
// @TODO: Apply velocity multiplier to yaw/pitch. Basically, it can adjust faster at lower speeds
|
||||||
//_adjustDeflection = (vectorMagnitude velocity _projectile);
|
//_adjustDeflection = (vectorMagnitude velocity _projectile);
|
||||||
|
|
||||||
_outVector = [_projectile, [_xVec, _yVec, _zVec], [_yaw, _adjustTime, _pitch]] call FUNC(translateToModelSpace);
|
_outVector = [_projectile, [_xVec, _yVec, _zVec], [_yaw, _adjustTime, _pitch]] call EFUNC(common,translateToModelSpace);
|
||||||
_vectorTo = _projectilePos vectorFromTo _outVector;
|
_vectorTo = _projectilePos vectorFromTo _outVector;
|
||||||
|
|
||||||
_projectile setVectorDirAndUp [_vectorTo, vectorUp _projectile];
|
_projectile setVectorDirAndUp [_vectorTo, vectorUp _projectile];
|
||||||
|
Loading…
Reference in New Issue
Block a user