Work save, timing correction.

This commit is contained in:
jaynus 2015-04-08 15:41:26 -07:00
parent 97230c2252
commit 0a1aae8553
3 changed files with 9 additions and 6 deletions

View File

@ -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";

View File

@ -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,

View File

@ -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];