Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
"editor.detectIndentation": false,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"git.confirmSync": false
"git.confirmSync": false,
"sqflint.discoverDescriptionFiles": false,
"sqflint.descriptionFiles": ["missions/Operation_Kerberos.Altis/description.ext"]
}
2 changes: 1 addition & 1 deletion .vscode/snippets/sqf.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
" Return Value:",
" ${8:return name} <${9:TYPENAME}>",
" ",
" Public: ${10|Yes,No|}",
" Public: ${10|Yes,No|}",
"*/",
"",
"$0"
Expand Down
2 changes: 1 addition & 1 deletion addons/artillery/functions/fnc_FireAtTarget.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ switch (typeOf _artillery) do {
case (_distance < 13000) : {"M9"}; // 10400-13600
case (_distance < 16000) : {"M10"}; // 12900-16800
case (_distance < 20500) : {"M11"}; // 15700-20500
default {""}
default {""};
};
//TRACEV_2(_distance,_mode);
CHECK(_mode isEqualTo "")
Expand Down
2 changes: 1 addition & 1 deletion addons/artillery/functions/fnc_calcMuzzleSpeed.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//#define DEBUG_MODE_FULL
#include "script_component.hpp"

params ["_barrellenght","_pressure","_mass"];
params ["_barrellenght","_pressure","_mass", "_projectilemass", "_crossSectionArea"];

private _q = _projectilemass/_crossSectionArea;

Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getGunLenght.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//#define DEBUG_MODE_FULL
#include "script_component.hpp"

_this params params [["_vehicle", "", [objNull,""]], ["_turret", [-1], [[]]]];
params [["_vehicle", "", [objNull,""]], ["_turret", [-1], [[]]]];

CHECK(_vehicle isEqualTo "")

Expand Down
4 changes: 2 additions & 2 deletions addons/composition/config/missionhouses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class generic_Land_Metal_Shed_F_01 {

class laptop_Land_i_House_Small_01_V2_F_laptop_01 {
type = "upload";
objecttypes = {"Land_Laptop_unfolded_F"};
objecttypes[] = {"Land_Laptop_unfolded_F"};
class header {
#include "missionhouses\laptop_Land_i_House_Small_01_V2_F_laptop_01\header.sqe"
};
Expand Down Expand Up @@ -191,7 +191,7 @@ class Outpost_V4 {

class pow_Land_i_Shed_Ind_F_01 {
type = "pow";
objecttypes = {"C_scientist_F"};
objecttypes[] = {"C_scientist_F"};
class header {
#include "missionhouses\pow_Land_i_Shed_Ind_F_01\header.sqe"
};
Expand Down
8 changes: 7 additions & 1 deletion addons/composition/functions/fnc_getCfgDataType.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@

#include "script_component.hpp"

params ["_cfg","_datatype"];
params [["_cfg", configNull, [configNull]], "_datatype"];
//TRACEV_2(_cfg,_datatype);

If (isNull _cfg) exitWith {
ERROR_1("No Config provided: %1",_cfg);
[]
};

_dataType = toLower _datatype;

private _return = [];
Expand Down
4 changes: 4 additions & 0 deletions addons/database/XEH_PREINIT.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ If (!isServer) exitWith {};

GVAR(initialized) = false;

if !(isClass (configFile >> "CfgPatches" >> "extDB3")) exitWith {
ERROR("ExtDB3 Mod is not loaded");
};

call FUNC(connectToDB);
["constructTablePlayers"] call FUNC(sendNoReturn);
2 changes: 1 addition & 1 deletion addons/database/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"dorb_common","extDB3"};
requiredAddons[] = {"dorb_common"};
author = ECSTRING(main,BrigTeam);
authors[] = {"Dorbedo"};
url = ECSTRING(main,URL);
Expand Down
2 changes: 1 addition & 1 deletion addons/database/functions/fnc_bigData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
#include "script_component.hpp"

_this params ["_key"];
params ["_key"];
private _return = "";
private "_pipe";
while {true} do {
Expand Down
1 change: 1 addition & 0 deletions addons/database/functions/fnc_connectToDB.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define DEBUG_MODE_NORMAL
#include "script_component.hpp"

if !(isClass (configFile >> "CfgPatches" >> "extDB3")) exitWith {};

private _result = "extdb3" callExtension "9:VERSION";
If (_result isEqualTo "") exitWith {
Expand Down
4 changes: 2 additions & 2 deletions addons/database/functions/fnc_getSingleValue.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
#include "script_component.hpp"

CHECK(isNil "_this")
If (isNil "_this") exitWith {};

private _query = [0,GVAR(sessionID)];
private _query = [0, GVAR(sessionID)];
_query append _this;
_query = _query joinString ":";
private _return = call compile ("extdb3" callExtension _query);
Expand Down
4 changes: 2 additions & 2 deletions addons/database/functions/fnc_getValue.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
#include "script_component.hpp"

CHECK(isNil "_this")
If (isNil "_this") exitWith {};

private _query = [0,GVAR(sessionID)];
private _query = [0, GVAR(sessionID)];
_query append _this;
_query = _query joinString ":";
private _return = call compile ("extdb3" callExtension _query);
Expand Down
4 changes: 2 additions & 2 deletions addons/database/functions/fnc_sendNoReturn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
*/
#include "script_component.hpp"

CHECK(isNil "_this")
If (isNil "_this") exitWith {};

private _query = [1,GVAR(sessionID)];
private _query = [1, GVAR(sessionID)];
_query append _this;
_query = _query joinString ":";
"extdb3" callExtension _query;
Expand Down
4 changes: 2 additions & 2 deletions addons/database/functions/fnc_sendWithReturn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
#include "script_component.hpp"

CHECK(isNil "_this")
If (isNil "_this") exitWith {};

private _query = [0,GVAR(sessionID)];
private _query = [0, GVAR(sessionID)];
_query append _this;
_query = _query joinString ":";
private _return = call compile ("extdb3" callExtension _query);
Expand Down
10 changes: 6 additions & 4 deletions addons/headless/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ RECOMPILE_START;
#include "XEH_PREP.hpp"
RECOMPILE_END;

ADDON = true;

GVAR(enabled) = true;
GVAR(delay) = HEADLESSDELAY;
GVAR(log) = true;

if (isClass(configFile >> "CfgPatches" >> "acex_headless")) exitWith {
GVAR(enabled) = false;
};

if (isServer) then {
GVAR(headlessClients) = [];
GVAR(inRebalance) = false;
GVAR(endMissionCheckDelayed) = false;
[QGVAR(headlessClientJoined), FUNC(handleConnectHC)] call CBA_fnc_addEventHandler;
};


ADDON = true;


["cba_settingsInitialized", {
// Register and remove HCs if not client that is not server and distribution or end mission enabled
if (((!hasInterface) || isServer) && {GVAR(enabled)}) then {
Expand Down
2 changes: 1 addition & 1 deletion addons/headless/functions/fnc_handleSpawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "script_component.hpp"

params ["_object"];
TRACE_1("Spawn",_object);
//TRACE_1("Spawn",_object);

// Exit if HC transferring disabled or object not a unit (including unit inside vehicle) or is player
if (!(_object in allUnits) || {isPlayer _object}) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/headquarter/config/statemachines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class GVAR(statemachine_AIGroups) {
condition = QUOTE((_this getVariable [ARR_2('GVAR(state)','none')])=='cas_support');
onTransition = "";
};
class toCAS {
class toCASBomb {
targetState = "cas_support_bomb";
condition = QUOTE((_this getVariable [ARR_2('GVAR(state)','none')])=='cas_support_bomb');
onTransition = "";
Expand Down
6 changes: 3 additions & 3 deletions addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 1
#define MINOR 24
#define PATCHLVL 3
#define BUILD 77
#define MINOR 26
#define PATCHLVL 0
#define BUILD 99
1 change: 1 addition & 0 deletions addons/missionhandler/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\dorb\addons\artillery
5 changes: 5 additions & 0 deletions addons/missionhandler/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_PREINIT));
};
};
19 changes: 19 additions & 0 deletions addons/missionhandler/XEH_PREINIT.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "script_component.hpp"

ADDON = false;

#include "XEH_PREP.hpp"

ADDON = true;

GVAR(rescuepoints) = [];

If ((getMarkerPos "rescuepoint_west") isEqualTo [0, 0, 0]) then {
["rescuepoint_west", west] call FUNC(rescuepoint_add);
};
If ((getMarkerPos "rescuepoint_east") isEqualTo [0, 0, 0]) then {
["rescuepoint_east", east] call FUNC(rescuepoint_add);
};
If ((getMarkerPos "rescuepoint_independent") isEqualTo [0, 0, 0]) then {
["rescuepoint_independent", independent] call FUNC(rescuepoint_add);
};
Empty file.
17 changes: 17 additions & 0 deletions addons/missionhandler/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"dorb_common"};
author = ECSTRING(main,BrigTeam);
authors[] = {"Dorbedo"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

#include "CfgEventhandlers.hpp"
Loading