-
Notifications
You must be signed in to change notification settings - Fork 6
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
Mini missions #67
base: master
Are you sure you want to change the base?
Mini missions #67
Conversation
@@ -54,6 +54,7 @@ class CfgFunctions | |||
#include "functions\events\cfgFunctions.hpp" | |||
#include "functions\external\cfgFunctions.hpp" | |||
#include "functions\groupsettings\cfgFunctions.hpp" | |||
#include "functions\minimissions\cfgFunctions.hpp" |
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.
#include "functions\minimissions\cfgFunctions.hpp" | |
#include "functions\minimissions\cfgFunctions.hpp" |
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.
- add to Wiki once merged.
[_bodyBag, 1] call ace_cargo_fnc_setSize; | ||
[_bodyBag, true, [0, 1.6, 0.26], 0] remoteExec ["ace_dragging_fnc_setDraggable", 0]; | ||
|
||
[_bodyBag] remoteExec ["grad_minimissions_fnc_bodyBagAction"]; |
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.
[_bodyBag] remoteExec ["grad_minimissions_fnc_bodyBagAction"]; | |
[_bodyBag] remoteExec ["grad_minimissions_fnc_bodyBagAction",0,_bodyBag]; |
For JIP compatibility.
params ["_target", "_bodyBag"]; | ||
diag_log format ["placedInBodyBag _target %1 - bodybag %2", _target, _bodyBag]; | ||
|
||
private _name = name _target; |
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.
Is this reliable? I think ACE uses ace_common_fnc_getName
for everything involving dead units.
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.
This applies tonal uses of name
// body bag scanner | ||
["ace_placedInBodyBag", { | ||
params ["_target", "_bodyBag"]; | ||
diag_log format ["placedInBodyBag _target %1 - bodybag %2", _target, _bodyBag]; |
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.
diag_log format ["placedInBodyBag _target %1 - bodybag %2", _target, _bodyBag]; | |
INFO_2("placedInBodyBag _target %1 - bodybag %2", _target, _bodyBag); |
Also the name of this component confused me, I thought this was going to add some pre-made semi-random missions for CO_Prometheus style games 🙈 |
haha, hmm any better idea? the first intent was to provide a framework for diwako style "ops-in-a-row" inside one mission. |
|
sub-missions? mission-phases ? mission-stages? sub-scenarios? |
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.
On top the suggested changes the inconsistent use of CBA macros should be fixed. :P
private _name = _target getVariable ["grad_minimissions_unitName", ""]; | ||
private _unit = objNull; | ||
{ | ||
if (name _x == _name) exitWith { |
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.
if (name _x == _name) exitWith { | |
if (name _x isEqualTo _name) exitWith { |
params ["_target", "_bodyBag"]; | ||
diag_log format ["placedInBodyBag _target %1 - bodybag %2", _target, _bodyBag]; | ||
|
||
private _name = name _target; |
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.
This applies tonal uses of name
@@ -0,0 +1,21 @@ | |||
/* |
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.
What exactly is the purpose of this file?
// save entire settings array once anything is changed basically | ||
private _fnc_saveSWSettings = { | ||
params ["_unit"]; | ||
if (_unit != player) exitWith {}; |
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.
if (_unit != player) exitWith {}; | |
if (_unit isNotEuqalTo player) exitWith {}; |
// same for longrange | ||
private _fnc_saveLRSettings = { | ||
params ["_unit"]; | ||
if (_unit != player) exitWith {}; |
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.
if (_unit != player) exitWith {}; | |
if (_unit isNotEqualTo player) exitWith {}; |
"TFAR_event_OnRadiosReceived", | ||
{ | ||
params ["_unit","_radio"]; | ||
if (_unit != player) exitWith {}; |
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.
if (_unit != player) exitWith {}; | |
if (_unit isNotEqualTo player) exitWith {}; |
[ | ||
{ | ||
params ["_unit","_backpack"]; | ||
backpack _unit == _backpack |
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.
backpack _unit == _backpack | |
backpack _unit isEqualTo _backpack |
"grad_loadout_loadoutApplied", | ||
{ | ||
params ["_unit","_loadout"]; | ||
if (_unit != player) exitWith {}; |
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.
if (_unit != player) exitWith {}; | |
if (_unit isNotEqualTo player) exitWith {}; |
@@ -1,5 +1,9 @@ | |||
["Terminate"] call BIS_fnc_EGSpectator; | |||
|
|||
if (([missionConfigFile >> "missionSettings","waveRespawnEnabled",0] call BIS_fnc_returnConfigEntry) == 1) then { | |||
if (([missionConfigFile >> "missionSettings" >> "respawnSettings","waveRespawnEnabled",0] call BIS_fnc_returnConfigEntry) == 1) then { |
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.
if (([missionConfigFile >> "missionSettings" >> "respawnSettings","waveRespawnEnabled",0] call BIS_fnc_returnConfigEntry) == 1) then { | |
if (([missionConfigFile >> "missionSettings" >> "respawnSettings","waveRespawnEnabled",0] call BIS_fnc_returnConfigEntry) isEqualTo 1) then { |
[] call grad_waverespawn_fnc_onPlayerRespawn; | ||
}; | ||
|
||
if (([missionConfigFile >> "missionSettings" >> "respawnSettings","miniMissionsEnabled",0] call BIS_fnc_returnConfigEntry) == 1) then { |
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.
if (([missionConfigFile >> "missionSettings" >> "respawnSettings","miniMissionsEnabled",0] call BIS_fnc_returnConfigEntry) == 1) then { | |
if (([missionConfigFile >> "missionSettings" >> "respawnSettings","miniMissionsEnabled",0] call BIS_fnc_returnConfigEntry) isEqualTo 1) then { |
adds experimental but working functionality of respawns mid-mission via bodybags.
also fixes some descriptions regarding medical settings.