RevoLand

Disable Friendly Fire (FF) for Groups

8 posts in this topic

Open your config.cpp, add the code i have given below to class CfgExileCustomCode:

ExileClient_object_player_event_onHandleDamage = "client\ExileClient_object_player_event_onHandleDamage.sqf";

It should look like this:

https://dl.dropboxusercontent.com/s/i09voizbeagjzpf/20-Salı-WC752I6j22.png?dl=0

And content of ExileClient_object_player_event_onHandleDamage.sqf:

/**
 * Exile Mod
 * exile.majormittens.co.uk
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_unit","_selectionName","_amountOfDamage","_sourceOfDamage","_typeOfProjectile"];
_unit             = _this select 0;
_selectionName    = _this select 1;
_amountOfDamage   = _this select 2;
_sourceOfDamage   = _this select 3;
_typeOfProjectile = _this select 4;

if ((leader (group _unit) == leader (group _sourceOfDamage)) && (_unit != _sourceOfDamage)) then
{
	_amountOfDamage = 0;
	_amountOfDamage;
};

Here you go, no more FF to your teammates :P

Edited by RevoLand
fixed no fall damage
  • Like 2

Share this post


Link to post
Share on other sites
Advertisement
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.