-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Zeus utility modules #4661
Add Zeus utility modules #4661
Changes from all commits
51de0bd
d2638cf
9332101
d27c68c
1683b5d
f329405
7037676
2398ac9
5a87acf
aa3289d
221d0ae
40ba9ef
7868eaf
be7c4d6
4b690e8
a1ebaed
dd85fcb
59ef96c
1c73355
30c694d
aab2cb7
438255a
008bb40
6c6bb58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
class CfgFactionClasses { | ||
class GVAR(AI) { | ||
displayName = "ACE AI"; | ||
priority = 2; | ||
side = 7; | ||
}; | ||
class GVAR(Captive) { | ||
displayName = "ACE Captive"; | ||
priority = 2; | ||
side = 7; | ||
}; | ||
class GVAR(Medical) { | ||
displayName = "ACE Medical"; | ||
priority = 2; | ||
side = 7; | ||
}; | ||
class GVAR(Repair) { | ||
displayName = "ACE Repair"; | ||
priority = 2; | ||
side = 7; | ||
}; | ||
class GVAR(Utility) { | ||
displayName = "ACE Utility"; | ||
priority = 2; | ||
side = 7; | ||
}; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* 2: activated <BOOL> | ||
* | ||
* Return Value: | ||
* nil | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* 2: activated <BOOL> | ||
* | ||
* Return Value: | ||
* nil | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* 2: activated <BOOL> | ||
* | ||
* Return Value: | ||
* nil | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* 1: The zeus player <UNIT> | ||
* | ||
* Return Value: | ||
* nil | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Author: Fisher, SilentSpike | ||
* Toggle Simulation on object. | ||
* | ||
* Arguments: | ||
* 0: The module logic <OBJECT> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
||
#include "script_component.hpp" | ||
|
||
params ["_logic"]; | ||
|
||
if !(local _logic) exitWith {}; | ||
|
||
private _object = attachedTo _logic; | ||
if (isNull _object) then { | ||
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured); | ||
} else { | ||
[QEGVAR(common,enableSimulationGlobal), [_object, !(simulationEnabled _object)]] call CBA_fnc_serverEvent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for learning purposes, what does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. QuotedExternalGlobalVARiable http://ace3mod.com/wiki/development/coding-guidelines.html#macro-usage There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The line makes use of this event defined in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aah I get it, makes a lot of sense now, thanks 👍 |
||
}; | ||
|
||
deleteVehicle _logic; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* 2: activated <BOOL> | ||
* | ||
* Return Value: | ||
* None <NIL> | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the module is local to the zeus? good to know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this line is standard in all zeus modules (BI included) with a few exceptions.