Quellcode durchsuchen

Change name of func to onWeaponFiredSwapToEmpty, remove debug spam on fired

m3ales vor 4 Jahren
Ursprung
Commit
cdcddd6e11

+ 1 - 1
addons - Copy/RD501_Main/XEH_preInit.sqf

@@ -95,4 +95,4 @@ macro_prep_xeh(infantry_uav\fnc_canRefuel.sqf,canRefuel)
 macro_prep_xeh(heavy_weapon\fnc_heavyWeaponHandlePlayerWeaponChanged.sqf,heavyWeaponHandlePlayerWeaponChanged)
 macro_prep_xeh(reload_on_select\fnc_reloadWeaponOnFirstSelected.sqf,reloadWeaponOnFirstSelected)
 macro_prep_xeh(reload_on_select\fnc_swapToEmptyWeapon.sqf,swapToEmptyWeapon)
-macro_prep_xeh(reload_on_select\fnc_onWeaponFiredSwap.sqf,onWeaponFiredSwap)
+macro_prep_xeh(reload_on_select\fnc_onWeaponFiredSwapToEmpty.sqf,onWeaponFiredSwapToEmpty)

+ 0 - 1
addons - Copy/RD501_Main/functions/reload_on_select/fnc_onWeaponFiredSwap.sqf → addons - Copy/RD501_Main/functions/reload_on_select/fnc_onWeaponFiredSwapToEmpty.sqf

@@ -1,6 +1,5 @@
 #include "../../config_macros.hpp"
 params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo"];
-systemChat "works";
 if(_unit ammo _muzzle > 0) exitWith
 {
 	systemChat format["fired skipped for %1", _muzzle];

+ 2 - 2
addons - Copy/RD501_Weapons/Z6/config.cpp

@@ -152,14 +152,14 @@ class cfgWeapons
 			macro_new_mag(z1000,3000)
 		};
 		class EventHandlers {
-			fired = macro_quote(_this call macro_fnc_name(onWeaponFiredSwap));
+			fired = macro_quote(_this call macro_fnc_name(onWeaponFiredSwapToEmpty));
 		};
     };
 	class macro_new_weapon_nofam(z1000u): 3AS_Chaingun
     {
         scope=1;
         scopeArsenal=1;
-        displayName="Z1000 Chaingun(Used)";
+        displayName="Z1000 Chaingun (Used)";
         _generalMacro="launch_RPG32_F";
 		magazines[]=
 		{