mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added simulation interval setting to the ab module
This commit is contained in:
parent
8f2261acdd
commit
e99fb398ae
@ -49,6 +49,12 @@ class ACE_Settings {
|
|||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = 1;
|
value = 1;
|
||||||
};
|
};
|
||||||
|
class GVAR(simulationInterval) {
|
||||||
|
displayName = "Simulation Interval";
|
||||||
|
description = "Defines the interval between every calculation step";
|
||||||
|
typeName = "SCALAR";
|
||||||
|
value = 0.0;
|
||||||
|
};
|
||||||
class GVAR(simulationRadius) {
|
class GVAR(simulationRadius) {
|
||||||
displayName = "Simulation Radius";
|
displayName = "Simulation Radius";
|
||||||
description = "Defines the radius (in meters) in which advanced ballistics are applied";
|
description = "Defines the radius (in meters) in which advanced ballistics are applied";
|
||||||
|
@ -61,6 +61,12 @@ class CfgVehicles {
|
|||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
defaultValue = 1;
|
defaultValue = 1;
|
||||||
};
|
};
|
||||||
|
class simulationInterval {
|
||||||
|
displayName = "Simulation Interval";
|
||||||
|
description = "Defines the interval between every calculation step";
|
||||||
|
typeName = "NUMBER";
|
||||||
|
defaultValue = 0.05;
|
||||||
|
};
|
||||||
class simulationRadius {
|
class simulationRadius {
|
||||||
displayName = "Simulation Radius";
|
displayName = "Simulation Radius";
|
||||||
description = "Defines the radius (in meters) in which advanced ballistics are applied";
|
description = "Defines the radius (in meters) in which advanced ballistics are applied";
|
||||||
|
@ -201,7 +201,7 @@ if (count GVAR(bulletDatabaseFreeIndices) > 0) then {
|
|||||||
true
|
true
|
||||||
} count GVAR(bulletDatabaseOccupiedIndices);
|
} count GVAR(bulletDatabaseOccupiedIndices);
|
||||||
|
|
||||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
}, GVAR(simulationInterval), []] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
GVAR(bulletDatabase) set[_index, [_bullet, _caliber, _airFriction, _muzzleVelocity, _stabilityFactor, _transonicStabilityCoef, _twistDirection, _unit, _bulletTraceVisible, _ballisticCoefficients, _velocityBoundaries, _atmosphereModel, _dragModel, _index]];
|
GVAR(bulletDatabase) set[_index, [_bullet, _caliber, _airFriction, _muzzleVelocity, _stabilityFactor, _transonicStabilityCoef, _twistDirection, _unit, _bulletTraceVisible, _ballisticCoefficients, _velocityBoundaries, _atmosphereModel, _dragModel, _index]];
|
||||||
@ -401,6 +401,6 @@ if (count GVAR(bulletDatabaseFreeIndices) > 0) then {
|
|||||||
true
|
true
|
||||||
} count GVAR(bulletDatabaseOccupiedIndices);
|
} count GVAR(bulletDatabaseOccupiedIndices);
|
||||||
|
|
||||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
}, GVAR(simulationInterval), []] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user