-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to disable fnc_globalExecute
Mission makers and/or server managers can disable the use of CBA_fnc_globalExecute either by using a mission setting or an optional addon. When disabled, calling fnc_globalExecute does nothing. Fixes #269
- Loading branch information
1 parent
95663f9
commit f9c8afc
Showing
3 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
Disable network code execution | ||
This is an optional addon that can be used to disable the network | ||
execution function "CBA_fnc_globalExecute" from running code on | ||
other machines. | ||
*/ | ||
|
||
class CfgPatches { | ||
class CBA_Disable_GlobalExec { | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = 0.1; | ||
requiredAddons[] = {"cba_network"}; | ||
}; | ||
}; | ||
|
||
class CfgSettings { | ||
class CBA { | ||
class Network { | ||
disableGlobalExecute = 1; | ||
}; | ||
}; | ||
}; |