Skip to content

Commit

Permalink
Revert "Revert "aus #613 neuen cmd connectToServer genutzt; script_mo…
Browse files Browse the repository at this point in the history
…d.hpp und script_macros.hpp con common nutzen"" (#654)

This reverts commit 514bfde.
  • Loading branch information
shukari authored Oct 23, 2021
1 parent 514bfde commit eea5731
Show file tree
Hide file tree
Showing 27 changed files with 59 additions and 146 deletions.
4 changes: 2 additions & 2 deletions addons/advSlingload/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT advSlingload
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/ai/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT ai
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/ares_compositions/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT ares_compositions
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/arsenal/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT arsenal
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"

/*
Addon spezifisch
Expand Down
4 changes: 2 additions & 2 deletions addons/building/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT building
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/bw/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT bw
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/config/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT config
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/eden/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT eden
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/eos/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT eos
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
8 changes: 5 additions & 3 deletions addons/extension/functions/fnc_callExtension.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ params [
["_codeReturn", false, [false]]
];

if (!canSuspend) exitWith {"ERROR: Suspending not allowed in this contex"};
// Darf nicht <Suspend> dann kommt nichts zurück
//if (!canSuspend) exitWith {"ERROR: Suspending not allowed in this contex"};

private _array = [_cmd];
if (!isNil {_data}) then {_array pushBack _data};
Expand All @@ -25,9 +26,10 @@ if (_errorCode < 0 || {_returnCode < 0}) then
systemChat _msg;
};

if (_returnCode > 1) then
// TODO: Darf nicht <Suspend> dann kommt nichts zurück
/*if (_returnCode > 1) then
{
_result = [_returnCode] call FUNC(getFromCache);
};
};*/

if (_codeReturn) then {_returnCode} else {_result};
4 changes: 2 additions & 2 deletions addons/extension/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT extension
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/medical/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT medical
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
13 changes: 6 additions & 7 deletions addons/menubutton/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class CfgPatches
name = "TBMod MenuButton";

requiredAddons[] = {
"TBMod_main"
"TBMod_common"
};
addonRootClass = "TBMod_main";
addonRootClass = "TBMod_common";
};
};

Expand All @@ -27,13 +27,12 @@ class RscDisplayMain: RscStandardDisplay
{
class Spotlight
{
class TB_missionServer
class GVAR(missionServer)
{
text = "";
textIsQuote = 0;
text = "TacticalBacon Server";
picture = PATHTOF(button.paa);
//video = "\a3\Ui_f\Video\spotlight_1_Apex.ogv";
action = QUOTE([_this, 'server.tacticalbacon.de', '2302', 'tbm'] call COMPILE_SCRIPT(joinServer)); // execVM QPATHTOF
//action = QUOTE([_this, 'server.tacticalbacon.de', '2302', 'tbm'] call COMPILE_SCRIPT(joinServer)); // execVM QPATHTOF
action = "connectToServer ['server.tacticalbacon.de', 2302, 'tbm']";
actionText = "Join TacticalBacon Server";
condition = "true";
};
Expand Down
88 changes: 0 additions & 88 deletions addons/menubutton/joinServer.sqf

This file was deleted.

4 changes: 2 additions & 2 deletions addons/menubutton/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT menubutton
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/nachschub/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT nachschub
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/persistence/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT persistence
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/poppy/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT poppy
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"

#define LOADOUT_INDEXES [ \
"uniform", "vest", "backpack", \
Expand Down
4 changes: 2 additions & 2 deletions addons/rhs/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT rhs
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/skins/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT skins
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/spectrum/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT spectrum
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/stealthvehicle/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT stealthvehicle
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
4 changes: 2 additions & 2 deletions addons/taser/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Developed by http://tacticalbacon.de
*/
#define COMPONENT taser
#include "\x\TBMod\addons\main\script_mod.hpp"
#include "\x\TBMod\addons\common\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE

#include "\x\TBMod\addons\main\script_macros.hpp"
#include "\x\TBMod\addons\common\script_macros.hpp"
Loading

0 comments on commit eea5731

Please sign in to comment.