mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Work save, timing correction.
This commit is contained in:
parent
97230c2252
commit
0a1aae8553
@ -42,9 +42,12 @@ class CfgAmmo {
|
||||
class ACE_MissileGuidance {
|
||||
enabled = 1;
|
||||
|
||||
minDeflection = 0.005; // Minium flap deflection for guidance
|
||||
maxDeflection = 0.025; // Maximum flap deflection for guidance
|
||||
incDeflection = 0.005; // The incrmeent in which deflection adjusts.
|
||||
//minDeflection = 0.005; // Minium flap deflection for guidance
|
||||
//maxDeflection = 0.025; // Maximum flap deflection for guidance
|
||||
//incDeflection = 0.005; // The incrmeent in which deflection adjusts.
|
||||
minDeflection = 0.005;
|
||||
maxDeflection = 0.5;
|
||||
incDeflection = 0.005;
|
||||
|
||||
// Guidance type for munitions
|
||||
defaultSeekerType = "SALH";
|
||||
|
@ -30,7 +30,7 @@ if ( isNil "_attackProfile" || { ! ( _attackProfile in (getArray (_config >> "at
|
||||
};
|
||||
|
||||
TRACE_4("Beginning ACE guidance system",_target,_ammo,_seekerType,_attackProfile);
|
||||
[FUNC(guidancePFH), 0, [_this,
|
||||
[FUNC(guidancePFH), 0.1, [_this,
|
||||
[ACE_player,
|
||||
[_target, _targetPos, _launchPos],
|
||||
_seekerType,
|
||||
|
@ -66,7 +66,7 @@ if(!isNil "_seekerTargetPos") then {
|
||||
|
||||
if(accTime > 0) then {
|
||||
_adjustTime = 1/accTime;
|
||||
_adjustTime = _adjustTime * (.01/_runtimeDelta);
|
||||
_adjustTime = _adjustTime * (_runtimeDelta / 0.1);
|
||||
|
||||
_outVector = [_projectile, [_xVec, _yVec, _zVec], [_yaw, _adjustTime, _pitch]] call FUNC(translateToModelSpace);
|
||||
_vectorTo = _projectilePos vectorFromTo _outVector;
|
||||
@ -79,7 +79,7 @@ if(!isNil "_seekerTargetPos") then {
|
||||
#endif
|
||||
};
|
||||
|
||||
_stateParams set[0, [diag_tickTime]];
|
||||
_stateParams set[0, diag_tickTime];
|
||||
|
||||
_args set[4, _stateParams];
|
||||
_this set[0, _args];
|
Loading…
Reference in New Issue
Block a user