Can someone help to realize the idea:
When the fire mode is on, the damage inflicted to the allies should only be from grenades and molotovs. And from the weapon on the allies a damage did not pass.
Of course I am ready to thank for the help in implementation.