Added simulation interval setting to the ab module

This commit is contained in:
ulteq 2015-04-12 16:25:01 +02:00
parent 8f2261acdd
commit e99fb398ae
3 changed files with 14 additions and 2 deletions

View File

@ -49,6 +49,12 @@ class ACE_Settings {
typeName = "BOOL";
value = 1;
};
class GVAR(simulationInterval) {
displayName = "Simulation Interval";
description = "Defines the interval between every calculation step";
typeName = "SCALAR";
value = 0.0;
};
class GVAR(simulationRadius) {
displayName = "Simulation Radius";
description = "Defines the radius (in meters) in which advanced ballistics are applied";

View File

@ -61,6 +61,12 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 1;
};
class simulationInterval {
displayName = "Simulation Interval";
description = "Defines the interval between every calculation step";
typeName = "NUMBER";
defaultValue = 0.05;
};
class simulationRadius {
displayName = "Simulation Radius";
description = "Defines the radius (in meters) in which advanced ballistics are applied";

View File

@ -201,7 +201,7 @@ if (count GVAR(bulletDatabaseFreeIndices) > 0) then {
true
} count GVAR(bulletDatabaseOccupiedIndices);
}, 0, []] call CBA_fnc_addPerFrameHandler;
}, GVAR(simulationInterval), []] call CBA_fnc_addPerFrameHandler;
};
#else
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
} count GVAR(bulletDatabaseOccupiedIndices);
}, 0, []] call CBA_fnc_addPerFrameHandler;
}, GVAR(simulationInterval), []] call CBA_fnc_addPerFrameHandler;
};
#endif