Browse Source

diag_log instead of systemChat

m3ales 4 years ago
parent
commit
46dae795a9

+ 7 - 7
addons - Copy/RD501_Main/functions/heavy_weapon/fnc_heavyWeaponHandlePlayerWeaponChanged.sqf

@@ -1,29 +1,29 @@
 params ["_unit", "_weapon"];
-systemChat "Handling Weapon Swap";
-if(_weapon == "" && !isForcedWalk _unit) exitWith { systemChat "No Weapon"; };
-systemChat format["%1 :: %2",_weapon, _unit];
+diag_log "Handling Weapon Swap";
+if(_weapon == "" && !isForcedWalk _unit) exitWith { diag_log "No Weapon"; };
+diag_log format["%1 :: %2",_weapon, _unit];
 
 private _fn_unForceWalk = {
 	params["_target"];
-	systemChat "Unforce Walk";
+	diag_log "Unforce Walk";
 	_target setVariable ["RD501_FORCE_WALK", false];
 	_target forceWalk false;
 };
 private _forceWalk = _unit getVariable ["RD501_FORCE_WALK", false];
 
-systemChat format["Checking _forceWalk :: %1", _forceWalk];
+diag_log format["Checking _forceWalk :: %1", _forceWalk];
 if(_weapon == "" && _forceWalk) exitWith {
 	_unit call _fn_unForceWalk;
 };
 
 private _fn_forceWalk = {
 	params["_target"];
-	systemChat "Force Walk";
+	diag_log "Force Walk";
 	_target setVariable ["RD501_FORCE_WALK", true];
 	_target forceWalk true;
 };
 
-systemChat format["Weapon in array :: %1", (_weapon in RD501_FORCE_WALK_WEAPONS)];
+diag_log format["Weapon in array :: %1", (_weapon in RD501_FORCE_WALK_WEAPONS)];
 if(_weapon in RD501_FORCE_WALK_WEAPONS) exitWith 
 {
 	if(!isForcedWalk _unit) then{

+ 2 - 2
addons - Copy/RD501_Main/functions/reload_on_select/fnc_onWeaponFiredSwapToEmpty.sqf

@@ -2,7 +2,7 @@
 params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo"];
 if(_unit ammo _muzzle > 0) exitWith
 {
-	systemChat format["fired skipped for %1", _muzzle];
+	diag_log format["fired skipped for %1", _muzzle];
 };
-systemChat format["Mag %1",_magazine];
+diag_log format["Mag %1",_magazine];
 [_unit, _weapon] call macro_fnc_name(swapToEmptyWeapon);

+ 4 - 4
addons - Copy/RD501_Main/functions/reload_on_select/fnc_reloadWeaponOnFirstSelected.sqf

@@ -1,12 +1,12 @@
 params ["_unit", "_weapon"];
-systemChat "Handling Disposable Reload";
+diag_log "Handling Disposable Reload";
 if(_weapon in RD501_AUTO_RELOAD_ON_EQUIP) then
 {
-	systemChat "Weapon in list";
+	diag_log "Weapon in list";
 	if(count (secondaryWeaponMagazine _unit) == 0) then {
-		systemChat "Weapon in list";
+		diag_log "Weapon in list";
 		_magazineName = getArray(configFile >> "CfgWeapons" >> currentWeapon _unit >> "magazines") select 0; // TODO: Cache in postInit
-		systemChat format["AutoReloading with %1", _magazineName]; 
+		diag_log format["AutoReloading with %1", _magazineName]; 
 		_unit removeMagazines _magazineName;
 		_unit addMagazine _magazineName;
 		_unit removeSecondaryWeaponItem _magazineName;