-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move SelfActions from postInit to config (#6791)
* Move zeus SelfActions to config * Port CBA PR #1048 * Move Land_Camping_Light_off_F TurnOn action to config * Move createModule function to script func * Update addons/zeus/functions/fnc_canCreateModule.sqf Co-Authored-By: dedmen <[email protected]> * Apply suggestions from code review Co-Authored-By: dedmen <[email protected]> * Teaching it a lesson about spacing * Update CBA: script_macros_common.hpp * Just change admin in cba macro
- Loading branch information
1 parent
a3c4fc4
commit a0476c0
Showing
7 changed files
with
77 additions
and
58 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
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,25 @@ | ||
#include "script_component.hpp" | ||
/* | ||
* Author: Dystopian | ||
* Check whether local player is currently allowed to create a Zeus Module | ||
* | ||
* Arguments: | ||
* None | ||
* | ||
* Return Value: | ||
* Allowed to create module <BOOL> | ||
* | ||
* Example: | ||
* call ace_zeus_fnc_canCreateModule | ||
* | ||
* Public: No | ||
*/ | ||
|
||
isNil QQGVAR(zeus) && { | ||
switch (GVAR(canCreateZeus)) do { | ||
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}}; | ||
case CAN_CREATE_CONSOLE: {call BIS_fnc_isDebugConsoleAllowed}; | ||
case CAN_CREATE_ALL: {true}; | ||
default {false}; | ||
} | ||
} |
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