Skip to content

Commit

Permalink
change magic number to macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Drofseh committed Mar 6, 2024
1 parent 782554c commit 1ea0745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/overheating/functions/fnc_calculateCooling.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (ACE_player call EFUNC(common,isSwimming)) then {
};

//Increase convection cooling for open bolt type guns
if (_boltType == 0) then {_convectionRate = _convectionRate * 1.1};
if (_boltType == 0) then {_convectionRate = _convectionRate * OPEN_BOLT_ADDITIONAL_CONVECTION};

TRACE_4("cooling",_temperature,_totalTime,_barrelMass,_barrelSurface);

Expand Down
1 change: 1 addition & 0 deletions addons/overheating/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define TEMP_TOLERANCE 50
#define METAL_MASS_RATIO 0.55
#define GUNPOWDER_IGNITION_TEMP 180
#define OPEN_BOLT_ADDITIONAL_CONVECTION 1.1

#ifdef DEBUG_MODE_FULL
#define TRACE_PROJECTILE_INFO(BULLET) _vdir = vectorNormalized velocity BULLET; _dir = (_vdir select 0) atan2 (_vdir select 1); _up = asin (_vdir select 2); _mv = vectorMagnitude velocity BULLET; TRACE_3("adjusted projectile",_dir,_up,_mv);
Expand Down

0 comments on commit 1ea0745

Please sign in to comment.