-
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 21 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,25 @@ | ||
/* | ||
* Author: Fisher | ||
* Toggle Simulation on object (runs on server only via module framework). | ||
* | ||
* Arguments: | ||
* 0: The module logic <OBJECT> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
|
||
#include "script_component.hpp" | ||
|
||
params ["_logic"]; | ||
|
||
private _object = attachedTo _logic; | ||
if (isNull _object) then { | ||
[LSTRING(NoObjectSelected)] call EFUNC(common,displayTextStructured); | ||
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. if this script does indeed only run on the server, then why does it show a text there? 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. isn't it so that it runs on both server & local? @SilentSpike 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. Also a good catch, hmm, I suppose it probably should run on the client and then send an event to the server so that this client feedback can be given. 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. Not optimal in terms of minimising network traffic, but much better UX for zeus and also these modules are only running when prompted by zeus anyway so it's not a big deal. |
||
} else { | ||
_object enableSimulationGlobal !(simulationEnabled _object); | ||
}; | ||
|
||
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.
@SilentSpike
Do you mean:
params ["_objects", ["_curator", objNull]];
so that the
exitWith
thing works as alternative syntax?Alternativeley change
!isNull _curator
to!isNil "_curator"
same above
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.
I know that this works anyway (at least in unscheduled env.) due to
isNull
silently failing when_curator
is undefined, but I still think relying on this SQF ... "feature" is bad design.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.
Good catch commy, I don't know why I totally forgot params can supply a default value when writing this 👍