Skip to content

Instantly share code, notes, and snippets.

@commy2
Created April 25, 2020 13:32
Show Gist options
  • Save commy2/7fd3260515e10c0fa57d218f39227ef6 to your computer and use it in GitHub Desktop.
Save commy2/7fd3260515e10c0fa57d218f39227ef6 to your computer and use it in GitHub Desktop.
// init.sqf
["weaponMode", {
params ["_unit", "_newWeaponMode", "_oldWeaponMode"];
private _weapon = currentMuzzle _unit;
if (_weapon isKindOf ["hlc_rifle_CQBR", configFile >> "CfgWeapons"] && _newWeaponMode != "Single") then {
[_unit, _weapon, "Single"] call CBA_fnc_selectWeapon;
};
}, true] call CBA_fnc_addPlayerEventHandler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment