Skip to content

Commit

Permalink
Merge pull request #2780 from acemod/fixTimeInComments
Browse files Browse the repository at this point in the history
Changed ACE_time back to time in comments where appropriate
  • Loading branch information
PabstMirror committed Nov 4, 2015
2 parents 50ab2aa + 069169c commit a3443ca
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_addScrollWheelEventHandler.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Author: commy2
* Add an event handler that executes every ACE_time the scroll wheel is used. This is needed, because adding a MouseZ display event handler to display 46 will break in save games.
* Add an event handler that executes every time the scroll wheel is used. This is needed, because adding a MouseZ display event handler to display 46 will break in save games.
* _this will be [Interval] where 'Interval' is a number.
*
* Arguments:
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_cachedCall.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Author: esteldunedain, Jaynus
* Returns the result of the function and caches it up to a given ACE_time or event
* Returns the result of the function and caches it up to a given time or event
*
* Arguments:
* 0: Parameters <ARRAY>
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getDeathAnim.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Author: Glowbal, PabstMirror
* Get the death animation for the unit at current ACE_time
* Get the death animation for the unit at current time
*
* Arguments:
* 0: unit <OBJECT>
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_progressBar.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Finish/Failure/Conditional are all passed [_args, _elapsedTime, _totalTime, _errorCode]
*
* Arguments:
* 0: NUMBER - Total Time (in game "ACE_time" seconds)
* 0: NUMBER - Total Time (in game "time" seconds)
* 1: ARRAY - Arguments, passed to condition, fail and finish
* 2: CODE or STRING - On Finish: Code called or STRING raised as event.
* 3: CODE or STRING - On Failure: Code called or STRING raised as event.
Expand Down
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_setVariablePublic.sqf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Author: commy2 and joko // Jonas
* Sets a public variable, but wait a certain amount of ACE_time to transfer the value over the network. Changing the value by calling this function again resets the windup timer.
* Sets a public variable, but wait a certain amount of time to transfer the value over the network. Changing the value by calling this function again resets the windup timer.
*
* Arguments:
* 0: Object the variable should be assigned to <OBJECT>
* 1: Name of the variable <STRING>
* 2: Value of the variable <ANY>
* 3: Windup ACE_time <NUMBER> (default: 1)
* 3: Windup time <NUMBER> (default: 1)
*
* Return Value:
* None
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_throttledPublicVariable.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

params ["_unit", "_varName", "_maxDelay"];

// Create the publish scheduler PFH the first ACE_time
// Create the publish scheduler PFH the first time
if (isNil QGVAR(publishSchedId)) then {
GVAR(publishVarNames) = [];
GVAR(publishNextTime) = 1e7;
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_waitAndExecute.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Author: esteldunedain
* Executes a code once with a given game ACE_time delay, using a PFH
* Executes a code once with a given game time delay, using a PFH
*
* Arguments:
* 0: Code to execute <CODE>
Expand Down
2 changes: 1 addition & 1 deletion addons/disarming/functions/fnc_disarmDropItems.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if (isNull _holder) then {
if (isNull _holder) exitWith {
[_caller, _target, "Debug: Null Holder"] call FUNC(eventTargetFinish);
};
//Make sure only one drop operation at a ACE_time (using PFEH system as a queue)
//Make sure only one drop operation at a time (using PFEH system as a queue)
if (_holder getVariable [QGVAR(holderInUse), false]) exitWith {
[{
_this call FUNC(disarmDropItems);
Expand Down
2 changes: 1 addition & 1 deletion addons/dragging/functions/fnc_startCarry.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (_target isKindOf "CAManBase") then {
[_unit, _target, true] call EFUNC(common,claim);


// prevents draging and carrying at the same ACE_time
// prevents draging and carrying at the same time
_unit setVariable [QGVAR(isCarrying), true, true];

// required for aborting animation
Expand Down
2 changes: 1 addition & 1 deletion addons/dragging/functions/fnc_startDrag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (_target isKindOf "CAManBase") then {
[_target, "AinjPpneMrunSnonWnonDb_grab", 2, true] call EFUNC(common,doAnimation);
};

// prevents draging and carrying at the same ACE_time
// prevents draging and carrying at the same time
_unit setVariable [QGVAR(isDragging), true, true];

[FUNC(startDragPFH), 0.2, [_unit, _target, ACE_time + 5]] call CBA_fnc_addPerFrameHandler;
2 changes: 1 addition & 1 deletion addons/dragging/functions/fnc_startDragPFH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (!alive _target || {_unit distance _target > 10}) then {
[_idPFH] call CBA_fnc_removePerFrameHandler;
};

// timeout. Do nothing. Quit. ACE_time, because anim length is linked to ingame ACE_time.
// timeout. Do nothing. Quit. ACE_time, because anim length is linked to ingame time.
if (ACE_time > _timeOut) exitWith {
[_idPFH] call CBA_fnc_removePerFrameHandler;

Expand Down
2 changes: 1 addition & 1 deletion addons/explosives/functions/fnc_detonateExplosive.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 1: Max range (-1 to ignore) <NUMBER>
* 2: Explosive <ARRAY>
* 0: Explosive <OBJECT>
* 1: Fuse ACE_time <NUMBER>
* 1: Fuse time <NUMBER>
*
* Return Value:
* None
Expand Down
2 changes: 1 addition & 1 deletion addons/fcs/functions/fnc_keyUp.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if (ACE_time - GVAR(time) > 1 and GVAR(time) != -1 and count _this < 3) then {

private ["_magazineType", "_ammoType", "_initSpeed", "_airFriction", "_timeToLive", "_simulationStep", "_initSpeedCoef", "_velocityMagnitude"];

// estimate ACE_time to target
// estimate time to target
_magazineType = _vehicle currentMagazineTurret _turret;
_ammoType = getText (configFile >> "CfgMagazines" >> _magazineType >> "ammo");
_initSpeed = getNumber (configFile >> "CfgMagazines" >> _magazineType >> "initSpeed");
Expand Down
2 changes: 1 addition & 1 deletion addons/gforces/functions/fnc_pfhUpdateGForces.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ EXPLODE_2_PVT(_this,_params,_pfhId);

_interval = ACE_time - GVAR(lastUpdateTime);

// Update the g-forces at constant game ACE_time intervals
// Update the g-forces at constant game time intervals
if (_interval < INTERVAL) exitWith {};

if (isNull ACE_player) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/grenades/functions/fnc_flashbangExplosionEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ _affected = _grenade nearEntities ["CAManBase", 20];
GVAR(flashbangPPEffectCC) ppEffectAdjust [1,1,(0.8 + _strength) min 1,[1,1,1,0],[0,0,0,1],[0,0,0,0]];
GVAR(flashbangPPEffectCC) ppEffectCommit 0.01;

//PARTIALRECOVERY - start decreasing effect over ACE_time
//PARTIALRECOVERY - start decreasing effect over time
[{
params ["_strength"];

Expand Down
4 changes: 2 additions & 2 deletions addons/javelin/functions/fnc_onOpticLoad.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "script_component.hpp"
TRACE_1("enter", _this);

#define __LOCKONTIMERANDOM 2 // Deviation in lock on ACE_time
#define __LOCKONTIMERANDOM 2 // Deviation in lock on time

if((count _this) > 0) then {
uiNameSpace setVariable ['ACE_RscOptics_javelin',_this select 0];
Expand All @@ -29,7 +29,7 @@ uiNameSpace setVariable [QGVAR(arguments),
0, // Run Time
0, // Lock Time
0, // Sound timer
(random __LOCKONTIMERANDOM), // random lock ACE_time addition
(random __LOCKONTIMERANDOM), // random lock time addition
-1
]
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* 2: Magazine is a belt <BOOL>
*
* Return Value:
* Array in format [ACE_time, isBullet, array of ammo counts] <ARRAY>
* Array in format [time, isBullet, array of ammo counts] <ARRAY>
*
* Example:
* [10, [1,2,3,8], false] call ace_magazinerepack_fnc_simulateRepackEvents =
Expand Down
2 changes: 1 addition & 1 deletion addons/map/functions/fnc_determineMapLight.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _fnc_blendColor = {
(_c1 select 3) * (1 - _alpha) + (_c2 select 3) * _alpha]
};

// Ambient light tint depending on ACE_time of day
// Ambient light tint depending on time of day
_lightTint = switch (true) do {
case (sunOrMoon == 1.0) : { [0.5,0.5,0.5,1] };
case (sunOrMoon > 0.80) : {[[1.0 - overcast,0.2,0,1], [1,1,1,1], (sunOrMoon - 0.8)/0.2] call _fnc_blendColor};
Expand Down
2 changes: 1 addition & 1 deletion addons/medical/XEH_respawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (!(_unit getVariable ["ACE_isUnconscious", false])) then {
[_unit, QGVAR(unconscious), false] call EFUNC(common,setCaptivityStatus);
};

// Remove maximum unconsciousness ACE_time handler
// Remove maximum unconsciousness time handler
_maxUnconHandle = _unit getVariable [QGVAR(maxUnconTimeHandle), -1];
if (_maxUnconHandle > 0) then {
[_maxUnconHandle] call CBA_fnc_removePerFrameHandler;
Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_addHeartRateAdjustment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Arguments:
* 0: The unit <OBJECT>
* 1: value <NUMBER>
* 2: ACE_time in seconds <NUMBER>
* 2: time in seconds <NUMBER>
* 3: callback <CODE>
*
* Return Value:
Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_onMedicationUsage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 1: Medication Treatment classname <STRING>
* 2: The medication treatment variablename <STRING>
* 3: Max dosage <NUMBER>
* 4: The ACE_time in the system <NUMBER>
* 4: The time in the system <NUMBER>
* 5: Incompatable medication <ARRAY<STRING>>
*
* Return Value:
Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_playInjuredSound.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Author: Glowbal
* Play the injured sound for a unit if the unit is damaged. The sound broadcasted across MP.
* Will not play if the unit has already played a sound within to close a ACE_time frame.
* Will not play if the unit has already played a sound within to close a time frame.
* Delay: With minimal damage (below 1), the delay is (10 + random(50)) seconds. Otherwise it is 60 seconds / damage.
*
* Arguments:
Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_setUnconscious.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Arguments:
* 0: The unit that will be put in an unconscious state <OBJECT>
* 1: Set unconsciouns <BOOL> (default: true)
* 2: Minimum unconscious ACE_time <NUMBER> (default: (round(random(10)+5)))
* 2: Minimum unconscious time <NUMBER> (default: (round(random(10)+5)))
* 3: Force AI Unconscious (skip random death chance) <BOOL> (default: false)
*
* ReturnValue:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ _resistance = _target getvariable [QGVAR(peripheralResistance), 100];
_resistance = _resistance + _viscosityChange;
_target setvariable [QGVAR(peripheralResistance), _resistance max 0];

// Call back to ensure that the medication is decreased over ACE_time
// Call back to ensure that the medication is decreased over time
[_target, _classname, _varName, _maxDose, _timeInSystem, _inCompatableMedication, _viscosityChange, _painReduce] call FUNC(onMedicationUsage);

true
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ while {(_numberOfAttempts < MAX_ATTEMPTS) && {(abs _error) > 0.2}} do {
};
if (_numberOfAttempts >= MAX_ATTEMPTS) exitWith {[]};

//return the elevation and ACE_time required
//return the elevation and time required
[_solutionElevation, (_lastTestResult select 1)]
4 changes: 2 additions & 2 deletions addons/mk6mortar/functions/fnc_dev_simulateShot.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ _currentVelocity = [0, (_muzzleVelocity * cos _angleDeg), (_muzzleVelocity * sin
_currentTime = 0;
_lastPos = _currentPos;

_kCoefficent = -1 * _relDensity * _airFriction; //save ACE_time in the loop and compute once
_kCoefficent = -1 * _relDensity * _airFriction; //save time in the loop and compute once

while {((_currentVelocity select 2) > 0) || ((_currentPos select 2) >= _heightOfTarget)} do {
_lastPos = _currentPos;
Expand All @@ -64,7 +64,7 @@ _linConversion = linearConversion [(_lastPos select 2), (_currentPos select 2),
_middlePos = (_lastPos vectorMultiply (1 - _linConversion)) vectorAdd (_currentPos vectorMultiply (_linConversion));
// _middlePosOld = (_lastPos vectorAdd _currentPos) vectorMultiply 0.5;

//Same to find travel ACE_time
//Same to find travel time
_middleTotalTravelTime = _currentTime - (_timeStep * (1-_linConversion));

//Find shot offset (from crosswind), in degrees
Expand Down
2 changes: 1 addition & 1 deletion addons/overheating/functions/fnc_cooldown.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

EXPLODE_3_PVT(_this,_temperature,_barrelMass,_totalTime);

// If a long ACE_time passed since the last shot, there's no need to calculate anything; the weapon should be cool
// If a long time passed since the last shot, there's no need to calculate anything; the weapon should be cool
if (_totalTime > 1800) exitWith {0};

private ["_barrelSurface", "_time", "_deltaTime"];
Expand Down
2 changes: 1 addition & 1 deletion addons/reloadlaunchers/functions/fnc_reloadLauncher.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ _target selectWeapon _weapon;
if (currentWeapon _target != _weapon) exitWith {};
if (currentMagazine _target != "") exitWith {};

// command is wip, reload ACE_time for launchers is not intended.
// command is wip, reload time for launchers is not intended.
_target addWeaponItem [_weapon, _magazine];
2 changes: 1 addition & 1 deletion addons/scopes/functions/fnc_showZeroing.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _horizontal = _display displayCtrl 13;
_vertical ctrlSetText (str _elevation);
_horizontal ctrlSetText (str _windage);

// Set the ACE_time when to hide the knobs
// Set the time when to hide the knobs
GVAR(timeToHide) = ACE_diagTime + 3.0;

if !(isNil QGVAR(fadePFH)) exitWith {};
Expand Down

0 comments on commit a3443ca

Please sign in to comment.