mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge branch 'master' into release-3.17
This commit is contained in:
commit
b919da797b
10
.github/release-drafter.yml
vendored
10
.github/release-drafter.yml
vendored
@ -11,11 +11,10 @@ sort-direction: ascending
|
||||
categories:
|
||||
- title: '**ADDED:**'
|
||||
labels:
|
||||
- 'kind/feature request'
|
||||
- 'kind/added feature'
|
||||
- 'kind/feature'
|
||||
- title: '**FIXED:**'
|
||||
labels:
|
||||
- 'kind/bug fix'
|
||||
- 'kind/bug-fix'
|
||||
- title: '**IMPROVED:**'
|
||||
labels:
|
||||
- 'kind/enhancement'
|
||||
@ -23,17 +22,16 @@ categories:
|
||||
- title: '**CHANGED:**'
|
||||
labels:
|
||||
- 'kind/cleanup'
|
||||
- 'area/compatibility'
|
||||
- 'kind/change'
|
||||
- title: '**SETTINGS:**'
|
||||
labels:
|
||||
- 'kind/setting'
|
||||
- title: '**TRANSLATIONS:**'
|
||||
labels:
|
||||
- 'area/translations'
|
||||
- 'kind/translation'
|
||||
|
||||
exclude-labels:
|
||||
- 'ignore changelog'
|
||||
- 'ignore-changelog'
|
||||
- 'dependencies'
|
||||
|
||||
change-template: '- $TITLE (#$NUMBER)'
|
||||
|
@ -19,11 +19,11 @@ if (!hasInterface) exitWith {};
|
||||
[] call FUNC(initializeTerrainExtension);
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Register Perframe Handler
|
||||
[FUNC(handleFirePFH), GVAR(simulationInterval)] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(handleFirePFH), GVAR(simulationInterval)] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
//Add warnings for missing compat PBOs (only if AB is on)
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
// Fired XEH
|
||||
GVAR(ammoEventHandlers) = createHashMap;
|
||||
[QGVAR(throwFiredXEH), FUNC(throwFiredXEH)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(throwFiredXEH), LINKFUNC(throwFiredXEH)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Exit on HC
|
||||
if (!hasInterface) exitWith {};
|
||||
|
@ -190,12 +190,14 @@
|
||||
<German>Zeige temporäre Windinformationen</German>
|
||||
<Italian>Mostra informazioni sul vento temporaneamente</Italian>
|
||||
<Japanese>一時的に風の情報を表示</Japanese>
|
||||
<Korean>바람 정보 임시로 표시</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Advanced_Throwing_EnableTempWindInfo_Description">
|
||||
<English>Temporarily display Wind Info while throwing, to aid in placing smoke grenades effectively.</English>
|
||||
<German>Zeige während des werfens Windinformationen an, um Rauchgranaten effektiver zu platzieren.</German>
|
||||
<Italian>Mostra le informazioni sul vento durante il lancio di granate, facilitando il piazzamento ottimale di fumogeni.</Italian>
|
||||
<Japanese>投擲行動中に風向きの情報を一時的に表示し、発煙手榴弾の煙幕を効果的に展開しやすくします。</Japanese>
|
||||
<Korean>연막탄을 효과적으로 배치하는 데 도움이 되도록 투척하는 동안 일시적으로 바람 정보를 표시합니다.</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Advanced_Throwing_Prepare">
|
||||
<English>Prepare/Change Throwable</English>
|
||||
|
@ -16,7 +16,7 @@
|
||||
} forEach _sections;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(unGarrison), FUNC(unGarrison)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(unGarrison), LINKFUNC(unGarrison)] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(doMove), {
|
||||
params ["_unitsArray"];
|
||||
@ -73,6 +73,6 @@
|
||||
if (isServer) then {
|
||||
["CAManBase", "init", {
|
||||
// wait for HMD to be assigned so `hmd _unit` works
|
||||
[FUNC(assignNVG), _this, 1] call CBA_fnc_waitAndExecute;
|
||||
[LINKFUNC(assignNVG), _this, 1] call CBA_fnc_waitAndExecute;
|
||||
}] call CBA_fnc_addClassEventHandler;
|
||||
};
|
||||
|
@ -1191,7 +1191,7 @@
|
||||
<Chinesesimp>支持夜视仪</Chinesesimp>
|
||||
<Czech>Podpora nočního vidění</Czech>
|
||||
<Turkish>Gece Görüş Desteği</Turkish>
|
||||
<Korean>야간투시 지원여부</Korean>
|
||||
<Korean>야간투시 지원</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Arsenal_statVisionMode_supPrim">
|
||||
<English>Primary supported</English>
|
||||
@ -1206,7 +1206,7 @@
|
||||
<Chinese>主武器支援</Chinese>
|
||||
<Chinesesimp>主镜支持</Chinesesimp>
|
||||
<Czech>Hlavní část hledí podporuje</Czech>
|
||||
<Korean>주무기 지원여부</Korean>
|
||||
<Korean>주무기 지원</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Arsenal_statVisionMode_supSec">
|
||||
<English>Secondary supported</English>
|
||||
@ -1221,7 +1221,7 @@
|
||||
<Chinese>次要武器支援</Chinese>
|
||||
<Chinesesimp>副镜支持</Chinesesimp>
|
||||
<Czech>Vedlejší část hledí podporuje</Czech>
|
||||
<Korean>보조무기 지원여부</Korean>
|
||||
<Korean>보조무기 지원</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Arsenal_statVisionMode_intPrim">
|
||||
<English>Primary integrated</English>
|
||||
@ -1236,19 +1236,21 @@
|
||||
<Chinese>整合主武器</Chinese>
|
||||
<Chinesesimp>主镜内置</Chinesesimp>
|
||||
<Czech>Integrováno do hlavní části hledí</Czech>
|
||||
<Korean>주무기 내장여부</Korean>
|
||||
<Korean>주무기 내장</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Arsenal_statVisionMode_ti">
|
||||
<English>Thermal integrated</English>
|
||||
<Italian>Termico integrato</Italian>
|
||||
<Japanese>熱画像装置内蔵</Japanese>
|
||||
<Russian>Интегрирован тепловизор.</Russian>
|
||||
<Korean>열화상 내장</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Arsenal_statVisionMode_intPrimTi">
|
||||
<English>Thermal & Primary integrated</English>
|
||||
<Italian>Termico e Primario integrato</Italian>
|
||||
<Japanese>熱画像装置内蔵・プライマリに内蔵</Japanese>
|
||||
<Russian>Интегрирован тепловизор и осн.прицел.</Russian>
|
||||
<Korean>열화상과 주무기 내장</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Arsenal_statVisionMode_NoSup">
|
||||
<English>Not Supported</English>
|
||||
|
@ -7,4 +7,4 @@ if (!hasInterface) exitWith {};
|
||||
GVAR(active) = false;
|
||||
GVAR(initialised) = false;
|
||||
|
||||
[QEGVAR(vector,rangefinderData), {_this call FUNC(sord)}] call CBA_fnc_addEventHandler;
|
||||
[QEGVAR(vector,rangefinderData), LINKFUNC(sord)] call CBA_fnc_addEventHandler;
|
||||
|
@ -25,14 +25,14 @@ if (isServer) then {
|
||||
};
|
||||
|
||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
[QGVAR(moveInCaptive), FUNC(vehicleCaptiveMoveIn)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(moveOutCaptive), FUNC(vehicleCaptiveMoveOut)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(moveInCaptive), LINKFUNC(vehicleCaptiveMoveIn)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(moveOutCaptive), LINKFUNC(vehicleCaptiveMoveOut)] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(setHandcuffed), FUNC(setHandcuffed)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setSurrendered), FUNC(setSurrendered)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setHandcuffed), LINKFUNC(setHandcuffed)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setSurrendered), LINKFUNC(setSurrendered)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//Medical Integration Events
|
||||
["ace_unconscious", FUNC(handleOnUnconscious)] call CBA_fnc_addEventHandler;
|
||||
["ace_unconscious", LINKFUNC(handleOnUnconscious)] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
<Italian>Piazza</Italian>
|
||||
<Russian>Разместить</Russian>
|
||||
<Japanese>配置する</Japanese>
|
||||
<Korean>배치하기</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Cargo_ScrollAction">
|
||||
<English>Raise/Lower | (Ctrl + Scroll) Rotate</English>
|
||||
@ -283,6 +284,7 @@
|
||||
<Italian>Caricando %1 in %2...</Italian>
|
||||
<Japanese>%1 を %2 に積み込んでいます・・・</Japanese>
|
||||
<Russian>Загружаем %1 в %2...</Russian>
|
||||
<Korean>%1을(를) %2에 싣는 중...</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Cargo_UnloadingItem">
|
||||
<English>Unloading %1 from %2...</English>
|
||||
@ -290,6 +292,7 @@
|
||||
<Italian>Scaricando %1 da %2...</Italian>
|
||||
<Japanese>%1 を %2 から降ろしています・・・</Japanese>
|
||||
<Russian>Выгружаем %1 из %2...</Russian>
|
||||
<Korean>%1을(를) %2(으)로부터 내리는 중...</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Cargo_LoadingFailed">
|
||||
<English>%1<br/>could not be loaded</English>
|
||||
@ -576,12 +579,14 @@
|
||||
<Italian>Abilita Piazzamento</Italian>
|
||||
<Russian>Включить размещение</Russian>
|
||||
<Japanese>配置機能を有効化</Japanese>
|
||||
<Korean>배치 활성화</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Cargo_enableDeploy_description">
|
||||
<English>Controls whether cargo items can be unloaded via the deploy method.</English>
|
||||
<Italian>Determina se oggetti in carico possono essere scaricati e piazzati direttamente.</Italian>
|
||||
<Russian>Определяет, можно ли выгружать грузы с помощью метода размещения.</Russian>
|
||||
<Japanese>配置機能を介して貨物アイテムを降ろすことが出来るかどうかを制御します。</Japanese>
|
||||
<Korean>배치 방법을 통해 화물 아이템을 내릴 수 있는지 여부를 제어합니다.</Korean>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
@ -4,4 +4,4 @@ if (!hasInterface || !GVAR(enabled)) exitWith {};
|
||||
|
||||
GVAR(cachedCasings) = createHashMap;
|
||||
GVAR(casings) = [];
|
||||
["CAManBase", "FiredMan", {call FUNC(createCasing)}] call CBA_fnc_addClassEventHandler;
|
||||
["CAManBase", "FiredMan", LINKFUNC(createCasing)] call CBA_fnc_addClassEventHandler;
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
["ace_firedPlayer", DFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||
// ["ace_firedPlayerNonLocal", DFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||
// ["ace_firedNonPlayer", DFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||
// ["ace_firedPlayerNonLocal", LINKFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||
// ["ace_firedNonPlayer", LINKFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||
|
@ -18,7 +18,7 @@
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
//Status Effect EHs:
|
||||
[QGVAR(setStatusEffect), {_this call FUNC(statusEffect_set)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setStatusEffect), LINKFUNC(statusEffect_set)] call CBA_fnc_addEventHandler;
|
||||
["forceWalk", false, ["ace_advanced_fatigue", "ACE_SwitchUnits", "ACE_Attach", "ace_dragging", "ACE_Explosives", "ACE_Ladder", "ACE_Sandbag", "ACE_refuel", "ACE_rearm", "ACE_Trenches", "ace_medical_fracture"]] call FUNC(statusEffect_addType);
|
||||
["blockSprint", false, ["ace_advanced_fatigue", "ace_dragging", "ace_medical_fracture"]] call FUNC(statusEffect_addType);
|
||||
["setCaptive", true, [QEGVAR(captives,Handcuffed), QEGVAR(captives,Surrendered)]] call FUNC(statusEffect_addType);
|
||||
@ -157,9 +157,9 @@ if (isServer) then {
|
||||
INFO_2("Headbug Used: Name: %1, Animation: %2",_profileName,_animation);
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(fixCollision), FUNC(fixCollision)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(fixFloating), FUNC(fixFloating)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(fixPosition), FUNC(fixPosition)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(fixCollision), LINKFUNC(fixCollision)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(fixFloating), LINKFUNC(fixFloating)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(fixPosition), LINKFUNC(fixPosition)] call CBA_fnc_addEventHandler;
|
||||
|
||||
["ace_loadPersonEvent", LINKFUNC(loadPersonLocal)] call CBA_fnc_addEventHandler;
|
||||
["ace_unloadPersonEvent", LINKFUNC(unloadPersonLocal)] call CBA_fnc_addEventHandler;
|
||||
@ -209,8 +209,8 @@ if (isServer) then {
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Request framework
|
||||
[QGVAR(requestCallback), FUNC(requestCallback)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(receiveRequest), FUNC(receiveRequest)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(requestCallback), LINKFUNC(requestCallback)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(receiveRequest), LINKFUNC(receiveRequest)] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(systemChatGlobal), {systemChat _this}] call CBA_fnc_addEventHandler;
|
||||
|
||||
@ -219,7 +219,7 @@ if (isServer) then {
|
||||
[QGVAR(enableSimulationGlobal), {(_this select 0) enableSimulationGlobal (_this select 1)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setShotParents), {(_this select 0) setShotParents [_this select 1, _this select 2]}] call CBA_fnc_addEventHandler;
|
||||
["ace_setOwner", {(_this select 0) setOwner (_this select 1)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(serverLog), FUNC(serverLog)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(serverLog), LINKFUNC(serverLog)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(claimSafe), LINKFUNC(claimSafeServer)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
@ -236,14 +236,14 @@ if (!isServer) then {
|
||||
["ACEa", [player]] call CBA_fnc_serverEvent;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
} else {
|
||||
["ACEa", FUNC(_handleRequestAllSyncedEvents)] call CBA_fnc_addEventHandler;
|
||||
["ACEa", LINKFUNC(_handleRequestAllSyncedEvents)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
["ACEe", FUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||
["ACEs", FUNC(_handleRequestSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||
["ACEe", LINKFUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||
["ACEs", LINKFUNC(_handleRequestSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (isServer) then {
|
||||
[FUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
||||
|
||||
@ -392,8 +392,8 @@ addMissionEventHandler ["PlayerViewChanged", {
|
||||
// Eventhandlers for player controlled machines
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
[QGVAR(displayTextStructured), {_this call FUNC(displayTextStructured)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(displayTextPicture), {_this call FUNC(displayTextPicture)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(displayTextStructured), LINKFUNC(displayTextStructured)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(displayTextPicture), LINKFUNC(displayTextPicture)] call CBA_fnc_addEventHandler;
|
||||
|
||||
["ace_unconscious", {
|
||||
params ["_unit", "_isUnconscious"];
|
||||
@ -403,7 +403,7 @@ addMissionEventHandler ["PlayerViewChanged", {
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
["ace_useItem", DFUNC(useItem)] call CBA_fnc_addEventHandler;
|
||||
["ace_useItem", LINKFUNC(useItem)] call CBA_fnc_addEventHandler;
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
@ -24,7 +24,7 @@ if (_name in GVAR(syncedEvents)) exitWith {
|
||||
false
|
||||
};
|
||||
|
||||
private _eventId = [_name, FUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||
private _eventId = [_name, LINKFUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||
private _data = [_handler, [], _ttl, _eventId];
|
||||
|
||||
GVAR(syncedEvents) set [_name, _data];
|
||||
|
@ -1829,16 +1829,19 @@
|
||||
<Turkish>Alt</Turkish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_subcategory_sway">
|
||||
<English>Sway</English>
|
||||
<English>Weapon Sway</English>
|
||||
<Japanese>手ぶれ</Japanese>
|
||||
<Korean>무기 흔들림</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_EnableSway">
|
||||
<English>Enable ACE Sway</English>
|
||||
<Japanese>ACE 手ぶれを有効化</Japanese>
|
||||
<English>Enable Weapon Sway</English>
|
||||
<Japanese>手ぶれを有効化</Japanese>
|
||||
<Korean>무기 흔들림 추가</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_EnableSway_Description">
|
||||
<English>Enables weapon sway influenced by sway factors, such as stance, fatigue and medical condition.\nDisabling this setting will defer sway to vanilla or other mods.</English>
|
||||
<Japanese>姿勢、疲労、負傷状態などの手ぶれ要因に影響を受ける武器照準の揺れを有効にします。\nこの設定を無効にすると、手ぶれの揺れはバニラまたは他のMODの処理に任されます。</Japanese>
|
||||
<Korean>흔들림 계수, 자세, 피로도, 건강 상태 등의 요인에 영향을 받는 무기 흔들림을 활성화합니다.\n이 설정을 비활성화하면 바닐라 또는 다른 모드의 흔들림으로 대체됩니다.</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_SwayFactor">
|
||||
<English>Sway factor</English>
|
||||
|
@ -1,3 +0,0 @@
|
||||
[tools]
|
||||
pboProject_noBinConfig = true
|
||||
sqfvm_skipConfigChecks = true
|
@ -1,15 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
#include "\z\ace\addons\refuel\defines.hpp"
|
||||
|
||||
// Remove after next cup release
|
||||
#pragma hemtt flag pe23_ignore_has_include
|
||||
#if __has_include("\cup\CUP_Terrains_ACE_compat\config.bin")
|
||||
#define PATCH_SKIP "CUP_Terrains_ACE_compat"
|
||||
#endif
|
||||
|
||||
#ifdef PATCH_SKIP
|
||||
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
|
||||
#else
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
@ -34,5 +25,3 @@ class CfgPatches {
|
||||
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgEventHandlers.hpp"
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +0,0 @@
|
||||
[tools]
|
||||
pboProject_noBinConfig = true
|
||||
sqfvm_skipConfigChecks = true
|
@ -1,14 +1,5 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
// Remove after next cup release
|
||||
#pragma hemtt flag pe23_ignore_has_include
|
||||
#if __has_include("\cup\CUP_Vehicles_ACE_compat\config.bin")
|
||||
#define PATCH_SKIP "CUP_Vehicles_ACE_compat"
|
||||
#endif
|
||||
|
||||
#ifdef PATCH_SKIP
|
||||
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
|
||||
#else
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
@ -29,5 +20,3 @@ class CfgPatches {
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +0,0 @@
|
||||
[tools]
|
||||
pboProject_noBinConfig = true
|
||||
sqfvm_skipConfigChecks = true
|
@ -5,86 +5,103 @@
|
||||
<English>[CSW] AGS30 Belt</English>
|
||||
<Japanese>[CSW] AGS30 ベルト</Japanese>
|
||||
<Russian>[CSW] Лента AGS 30</Russian>
|
||||
<Korean>[CSW] AGS-30 벨트</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_MK19_displayName">
|
||||
<English>[CSW] MK19 Belt</English>
|
||||
<Japanese>[CSW] Mk19 ベルト</Japanese>
|
||||
<Russian>[CSW] Лента Mk19</Russian>
|
||||
<Korean>[CSW] Mk.19 벨트</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_TOW_displayName">
|
||||
<English>[CSW] TOW Tube</English>
|
||||
<Japanese>[CSW] TOW チューブ</Japanese>
|
||||
<Russian>[CSW] Туба TOW</Russian>
|
||||
<Korean>[CSW] TOW 튜브</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_TOW2_displayName">
|
||||
<English>[CSW] TOW2 Tube</English>
|
||||
<Japanese>[CSW] TOW2 チューブ</Japanese>
|
||||
<Russian>[CSW] Туба TOW-2</Russian>
|
||||
<Korean>[CSW] TOW2 튜브</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_PG9_displayName">
|
||||
<English>[CSW] PG-9 Round</English>
|
||||
<Japanese>[CSW] PG-9 砲弾</Japanese>
|
||||
<Russian>[CSW] Снаряд ПГ-9</Russian>
|
||||
<Korean>[CSW] PG-9 대전차고폭탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_OG9_displayName">
|
||||
<English>[CSW] OG-9 Round</English>
|
||||
<Japanese>[CSW] OG-9 砲弾</Japanese>
|
||||
<Russian>[CSW] Снаряд OГ-9</Russian>
|
||||
<Korean>[CSW] OG-9 고폭파편탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_M1HE_displayName">
|
||||
<English>[CSW] M1 HE</English>
|
||||
<Japanese>[CSW] M1 榴弾</Japanese>
|
||||
<Russian>[CSW] M1 HE</Russian>
|
||||
<Korean>[CSW] M1 고폭탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_M84Smoke_displayName">
|
||||
<English>[CSW] M84 Smoke</English>
|
||||
<Japanese>[CSW] M84 白煙弾</Japanese>
|
||||
<Russian>[CSW] M84 Дымовая</Russian>
|
||||
<Korean>[CSW] M84 연막탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_M60A2_displayName">
|
||||
<English>[CSW] M60A2 WP</English>
|
||||
<Japanese>[CSW] M60A2 白リン弾</Japanese>
|
||||
<Russian>[CSW] M60A2 WP</Russian>
|
||||
<Korean>[CSW] M60A2 백린연막탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_M67AT_displayName">
|
||||
<English>[CSW] M67 AT Laser Guided</English>
|
||||
<Japanese>[CSW] M67 対戦車レーザー誘導弾</Japanese>
|
||||
<Russian>[CSW] M67 AT Laser Guided</Russian>
|
||||
<Korean>[CSW] M67 레이저유도 대전차탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_M314Illum_displayName">
|
||||
<English>[CSW] M314 Illumination</English>
|
||||
<Japanese>[CSW] M314 照明弾</Japanese>
|
||||
<Russian>[CSW] M314 Осветительная</Russian>
|
||||
<Korean>[CSW] M314 조명탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_3OF56_displayName">
|
||||
<English>[CSW] 3OF56 HE</English>
|
||||
<Japanese>[CSW] 3OF56 榴弾</Japanese>
|
||||
<Russian>[CSW] 3OF56 HE</Russian>
|
||||
<Korean>[CSW] 3OF56 고폭탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_3OF69M_displayName">
|
||||
<English>[CSW] 3OF69M Laser Guided</English>
|
||||
<Japanese>[CSW] 3OF69M レーザー誘導弾</Japanese>
|
||||
<Russian>[CSW] 3OF69M Laser Guided</Russian>
|
||||
<Korean>[CSW] 3OF69M 레이저유도탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_122mmWP_displayName">
|
||||
<English>[CSW] 122mm WP</English>
|
||||
<Japanese>[CSW] 122mm 白リン弾</Japanese>
|
||||
<Russian>[CSW] 122mm WP</Russian>
|
||||
<Korean>[CSW] 122mm 백린탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_122mmSmoke_displayName">
|
||||
<English>[CSW] D-462 Smoke</English>
|
||||
<Japanese>[CSW] D-462 白煙弾</Japanese>
|
||||
<Russian>[CSW] D-462 Дымовая</Russian>
|
||||
<Korean>[CSW] D-462 연막탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_122mmIllum_displayName">
|
||||
<English>[CSW] S-463 Illumination</English>
|
||||
<Japanese>[CSW] S-463 照明弾</Japanese>
|
||||
<Russian>[CSW] S-463 Осветительная</Russian>
|
||||
<Korean>[CSW] S-463 조명탄</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_CSW_mag_122mmAT_displayName">
|
||||
<English>[CSW] BK-6M HEAT</English>
|
||||
<Japanese>[CSW] BK-6M HEAT弾</Japanese>
|
||||
<Russian>[CSW] BK-6M HEAT</Russian>
|
||||
<Korean>[CSW] BK-6M 대전차고폭탄</Korean>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_nightvision_CUP_NVG_PVS15_winter_WP">
|
||||
<English>AN/PVS-15 (Winter, WP)</English>
|
||||
<Japanese>AN/PVS-15 (冬季迷彩, WP)</Japanese>
|
||||
<Korean>AN/PVS-15 (설상, WP)</Korean>
|
||||
<Korean>AN/PVS-15 (설상, 백색광)</Korean>
|
||||
<Russian>AN/PVS-15 (Белый, БФ)</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_nightvision_CUP_NVG_GPNVG_black_WP">
|
||||
@ -80,7 +80,7 @@
|
||||
<Key ID="STR_ACE_Compat_CUP_Weapons_nightvision_CUP_NVG_GPNVG_winter_WP">
|
||||
<English>GPNVG (Winter, WP)</English>
|
||||
<Japanese>GPNVG (冬季迷彩, WP)</Japanese>
|
||||
<Korean>GPNVG (설상, WP)</Korean>
|
||||
<Korean>GPNVG (설상, 백색광)</Korean>
|
||||
<Russian>AN/PVS-15 (Белый, БФ)</Russian>
|
||||
</Key>
|
||||
</Package>
|
||||
|
@ -1,14 +1,5 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
// Remove after next cup release
|
||||
#pragma hemtt flag pe23_ignore_has_include
|
||||
#if __has_include("\cup\CUP_Weapons_ACE_compat\config.bin")
|
||||
#define PATCH_SKIP "CUP_Weapons_ACE_compat"
|
||||
#endif
|
||||
|
||||
#ifdef PATCH_SKIP
|
||||
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
|
||||
#else
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
@ -27,5 +18,3 @@ class CfgPatches {
|
||||
#include "CfgMagazines.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "CfgEventHandlers.hpp"
|
||||
|
||||
#endif
|
||||
|
@ -10,4 +10,4 @@ GVAR(deployPFH) = -1;
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(vehicleDamage), {_this call FUNC(vehicleDamage)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(vehicleDamage), LINKFUNC(vehicleDamage)] call CBA_fnc_addEventHandler;
|
||||
|
@ -1,15 +1,15 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
[QGVAR(engineFire), FUNC(engineFire)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(engineFire), LINKFUNC(engineFire)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(cookOff), {
|
||||
params ["_vehicle"];
|
||||
if (local _vehicle) then {
|
||||
_this call FUNC(cookOff);
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(cookOffEffect), FUNC(cookOffEffect)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(smoke), FUNC(smoke)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(cookOffBox), FUNC(cookOffBox)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(cookOffEffect), LINKFUNC(cookOffEffect)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(smoke), LINKFUNC(smoke)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(cookOffBox), LINKFUNC(cookOffBox)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// handle cleaning up effects when vehicle is deleted mid-cookoff
|
||||
[QGVAR(addCleanupHandlers), {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
[QGVAR(dropItems), FUNC(eventTargetStart)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(debugCallback), FUNC(eventCallerFinish)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(dropItems), LINKFUNC(eventTargetStart)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(debugCallback), LINKFUNC(eventCallerFinish)] call CBA_fnc_addEventHandler;
|
||||
|
@ -1,9 +1,9 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
[QGVAR(showDogtag), DFUNC(showDogtag)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(sendDogtagData), DFUNC(sendDogtagData)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(getDogtagItem), DFUNC(getDogtagItem)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(addDogtagItem), DFUNC(addDogtagItem)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(showDogtag), LINKFUNC(showDogtag)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(sendDogtagData), LINKFUNC(sendDogtagData)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(getDogtagItem), LINKFUNC(getDogtagItem)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(addDogtagItem), LINKFUNC(addDogtagItem)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Add actions and event handlers only if ace_medical is loaded
|
||||
// - Adding actions via config would create a dependency
|
||||
|
@ -53,7 +53,7 @@ _unit setVariable [QGVAR(releaseActionID), [
|
||||
] call EFUNC(common,addActionEventHandler)];
|
||||
|
||||
// Add anim changed EH
|
||||
[_unit, "AnimChanged", FUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
||||
[_unit, "AnimChanged", LINKFUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
||||
|
||||
// Prevent UAVs from firing
|
||||
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
|
||||
@ -67,4 +67,4 @@ if (_UAVCrew isNotEqualTo []) then {
|
||||
};
|
||||
|
||||
// Check everything
|
||||
[FUNC(carryObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(carryObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -66,7 +66,7 @@ if (!GVAR(dragAndFire)) then {
|
||||
};
|
||||
|
||||
// Add anim changed EH
|
||||
[_unit, "AnimChanged", FUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
||||
[_unit, "AnimChanged", LINKFUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
||||
|
||||
// Prevent UAVs from firing
|
||||
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
|
||||
@ -80,7 +80,7 @@ if (_UAVCrew isNotEqualTo []) then {
|
||||
};
|
||||
|
||||
// Check everything
|
||||
[FUNC(dragObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(dragObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
// Fixes not being able to move when in combat pace
|
||||
[_unit, "forceWalk", QUOTE(ADDON), true] call EFUNC(common,statusEffect_set);
|
||||
|
@ -84,7 +84,7 @@ _unit setVariable [QGVAR(isCarrying), true, true];
|
||||
// Required for aborting animation
|
||||
_unit setVariable [QGVAR(carriedObject), _target, true];
|
||||
|
||||
[FUNC(startCarryPFH), 0.2, [_unit, _target, _timer]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(startCarryPFH), 0.2, [_unit, _target, _timer]] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
// Disable collisions by setting the PhysX mass to almost zero
|
||||
private _mass = getMass _target;
|
||||
|
@ -96,7 +96,7 @@ if (_target isKindOf "CAManBase") then {
|
||||
// Prevents dragging and carrying at the same time
|
||||
_unit setVariable [QGVAR(isDragging), true, true];
|
||||
|
||||
[FUNC(startDragPFH), 0.2, [_unit, _target, CBA_missionTime + 5]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(startDragPFH), 0.2, [_unit, _target, CBA_missionTime + 5]] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
// Disable collisions by setting the physx mass to almost zero
|
||||
private _mass = getMass _target;
|
||||
|
@ -27,7 +27,7 @@
|
||||
};
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(startDefuse), FUNC(startDefuse)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(startDefuse), LINKFUNC(startDefuse)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//When getting knocked out in medical, trigger deadman explosives:
|
||||
//Event is global, only run on server (ref: ace_medical_fnc_setUnconscious)
|
||||
|
@ -30,7 +30,7 @@ for "_i" from 1 to _ran do {
|
||||
};
|
||||
if (_unit == ace_player) then {
|
||||
ctrlSetText [1400,"Calling"];
|
||||
[FUNC(dialingPhone), 0.25, [_unit,4,_arr,_code]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|
||||
[LINKFUNC(dialingPhone), 0.25, [_unit,4,_arr,_code]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|
||||
} else {
|
||||
private _explosive = [_code] call FUNC(getSpeedDialExplosive);
|
||||
if ((count _explosive) > 0) then {
|
||||
|
@ -74,6 +74,7 @@
|
||||
<Italian>Detona Tutti sul Detonatore Attivo</Italian>
|
||||
<Russian>Подрыв всех на активном детонаторе</Russian>
|
||||
<Japanese>選択した点火装置を全て起爆</Japanese>
|
||||
<Korean>활성화된 격발기의 모든 것을 폭파</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Explosives_SetActiveTrigger">
|
||||
<English>Set Active Clacker</English>
|
||||
@ -81,6 +82,7 @@
|
||||
<Italian>Imposta Detonatore Attivo</Italian>
|
||||
<Russian>Установить активный детонатор</Russian>
|
||||
<Japanese>この点火装置を選択</Japanese>
|
||||
<Korean>격발기 활성 설정</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Explosives_CycleActiveTrigger">
|
||||
<English>Cycle Active Clacker</English>
|
||||
@ -88,6 +90,7 @@
|
||||
<Italian>Cambia Detonatore Attivo</Italian>
|
||||
<Russian>Цикл активного детонатора</Russian>
|
||||
<Japanese>点火装置を切り替え</Japanese>
|
||||
<Korean>격발기 활성 전환</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Explosives_ActiveTrigger">
|
||||
<English>Active Clacker</English>
|
||||
@ -95,6 +98,7 @@
|
||||
<Italian>Detonatore Attivo</Italian>
|
||||
<Russian>Активный детонатор</Russian>
|
||||
<Japanese>選択中の点火装置</Japanese>
|
||||
<Korean>격발기 활성</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Explosives_DetonateCode">
|
||||
<English>Explosive code: %1</English>
|
||||
|
@ -1,11 +1,9 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
[QGVAR(deployRopes), {
|
||||
_this call FUNC(deployRopes);
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(deployRopes), LINKFUNC(deployRopes)] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(startFastRope), {
|
||||
[FUNC(fastRopeServerPFH), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(fastRopeServerPFH), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Keybinds
|
||||
|
@ -36,4 +36,4 @@ _vehicle setVariable [QGVAR(deployedRopes), _deployedRopes, true];
|
||||
//Start server PFH asap
|
||||
[QGVAR(startFastRope), [_unit, _vehicle, _usableRope, _usableRopeIndex, false]] call CBA_fnc_serverEvent;
|
||||
moveOut _unit;
|
||||
[FUNC(fastRopeLocalPFH), 0, [_unit, _vehicle, _usableRope, _usableRopeIndex, diag_tickTime]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(fastRopeLocalPFH), 0, [_unit, _vehicle, _usableRope, _usableRopeIndex, diag_tickTime]] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -72,5 +72,5 @@ if (getNumber (configFile >> "CfgAmmo" >> _ammo >> QGVAR(Airburst)) == 1) then {
|
||||
if (_zeroing < 50) exitWith {};
|
||||
if (_zeroing > 1500) exitWith {};
|
||||
|
||||
[FUNC(handleAirBurstAmmunitionPFH), 0, [_vehicle, _projectile, _zeroing]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(handleAirBurstAmmunitionPFH), 0, [_vehicle, _projectile, _zeroing]] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
@ -96,7 +96,7 @@ if !(hasInterface) exitWith {};
|
||||
] call CBA_fnc_addItemContextMenuOption;
|
||||
|
||||
// Add water source helpers when interaction menu is opened
|
||||
["ace_interactMenuOpened", {call FUNC(addWaterSourceInteractions)}] call CBA_fnc_addEventHandler;
|
||||
["ace_interactMenuOpened", LINKFUNC(addWaterSourceInteractions)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Add status modifiers
|
||||
if (["ace_medical"] call EFUNC(common,isModLoaded)) then {
|
||||
@ -134,7 +134,7 @@ if !(hasInterface) exitWith {};
|
||||
["CAManBase", "respawn", LINKFUNC(handleRespawn)] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
// Start update loop
|
||||
[FUNC(update), CBA_missionTime + MP_SYNC_INTERVAL, 1] call CBA_fnc_waitAndExecute;
|
||||
[LINKFUNC(update), CBA_missionTime + MP_SYNC_INTERVAL, 1] call CBA_fnc_waitAndExecute;
|
||||
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
["ACE_player thirst", {ACE_player getVariable [QXGVAR(thirst), 0]}, [true, 0, 100]] call EFUNC(common,watchVariable);
|
||||
|
@ -25,7 +25,7 @@ private _player = ACE_player;
|
||||
|
||||
// Exit if player is not alive or a virtual unit
|
||||
if (!alive _player || {_player isKindOf "VirtualMan_F"}) exitWith {
|
||||
[FUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
||||
[LINKFUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
||||
QGVAR(hud) cutFadeOut 0.5;
|
||||
};
|
||||
|
||||
@ -73,4 +73,4 @@ if (!EGVAR(common,OldIsCamera) && {_thirst > XGVAR(hudShowLevel) || {_hunger > X
|
||||
QGVAR(hud) cutFadeOut 0.5;
|
||||
};
|
||||
|
||||
[FUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
||||
[LINKFUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
||||
|
@ -11,7 +11,7 @@ if (!hasInterface) exitWith {};
|
||||
GVAR(fingersHash) = createHashMap;
|
||||
GVAR(pfeh_id) = -1;
|
||||
|
||||
[QGVAR(fingered), {_this call FUNC(incomingFinger)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(fingered), LINKFUNC(incomingFinger)] call CBA_fnc_addEventHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
//Add Keybind:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
[QGVAR(burn), FUNC(burn)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(burn), LINKFUNC(burn)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(playScream), {
|
||||
params ["_scream", "_source"];
|
||||
// only play sound if enabled in settings and enabled for the unit
|
||||
@ -31,7 +31,7 @@
|
||||
[GVAR(fireSources), _key] call CBA_fnc_hashRem;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
[{ _this call FUNC(fireManagerPFH) }, FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(fireManagerPFH), FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler;
|
||||
GVAR(fireSources) = [[], nil] call CBA_fnc_hashCreate;
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
@ -244,7 +244,7 @@ if (_isBurning) exitWith {};
|
||||
|
||||
private _burnIndicatorPFH = _unit getVariable [QGVAR(burnUIPFH), -1];
|
||||
if (_unit isEqualTo ace_player && { _isThisUnitAlive } && { _burnIndicatorPFH < 0 }) then {
|
||||
_burnIndicatorPFH = [FUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
||||
_burnIndicatorPFH = [LINKFUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
||||
_unit setVariable [QGVAR(burnUIPFH), _burnIndicatorPFH];
|
||||
};
|
||||
};
|
||||
@ -296,7 +296,7 @@ if (_isBurning) exitWith {};
|
||||
|
||||
if (local _unit) then {
|
||||
if (_unit isEqualTo ace_player) then {
|
||||
private _burnIndicatorPFH = [FUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
||||
private _burnIndicatorPFH = [LINKFUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
||||
_unit setVariable [QGVAR(burnUIPFH), _burnIndicatorPFH];
|
||||
};
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
if (isServer) then {
|
||||
GVAR(lastFragTime) = -1;
|
||||
[QGVAR(frag_eh), {_this call FUNC(frago);}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(frag_eh), LINKFUNC(frago)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
|
@ -22,5 +22,5 @@ if (_depth <= 2) then {
|
||||
private _indirectHitRange = getNumber(configFile >> "CfgAmmo" >> _ammo >> "indirectHitRange");
|
||||
private _indirectHit = getNumber(configFile >> "CfgAmmo" >> _ammo >> "indirectHit");
|
||||
private _testParams = [_pos, [_indirectHitRange, _indirectHit], [], [], -4, _depth, 0];
|
||||
[DFUNC(findReflections), 0, _testParams] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(findReflections), 0, _testParams] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
@ -88,10 +88,10 @@ if (!hasInterface) exitWith {};
|
||||
if (GVAR(effects) in [2, 3]) then {
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//Add Explosion XEH
|
||||
["CAManBase", "explosion", FUNC(handleExplosion)] call CBA_fnc_addClassEventHandler;
|
||||
["CAManBase", "explosion", LINKFUNC(handleExplosion)] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
GVAR(PostProcessEyes) = ppEffectCreate ["ColorCorrections", 1992];
|
||||
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0, 0, 0, 1], [1, 1, 1, 0]];
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
["ace_flashbangExploded", {_this call FUNC(flashbangExplosionEH)}] call CBA_fnc_addEventHandler;
|
||||
["ace_flashbangExploded", LINKFUNC(flashbangExplosionEH)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Register fired event handlers
|
||||
["ace_firedPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedNonPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedNonPlayer", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
if (isServer) then {
|
||||
// Request rebalance on any unit spawn (only if distribution enabled)
|
||||
if (XGVAR(enabled)) then {
|
||||
["AllVehicles", "initPost", FUNC(handleSpawn), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||
["AllVehicles", "initPost", LINKFUNC(handleSpawn), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||
};
|
||||
// Add disconnect EH
|
||||
addMissionEventHandler ["HandleDisconnect", {call FUNC(handleDisconnect)}];
|
||||
|
@ -13,7 +13,7 @@ if (isServer) then {
|
||||
GVAR(inRebalance) = false;
|
||||
GVAR(endMissionCheckDelayed) = false;
|
||||
GVAR(blacklistType) = [BLACKLIST_UAV];
|
||||
[QXGVAR(headlessClientJoined), FUNC(handleConnectHC)] call CBA_fnc_addEventHandler;
|
||||
[QXGVAR(headlessClientJoined), LINKFUNC(handleConnectHC)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
ADDON = true;
|
||||
|
@ -368,6 +368,7 @@
|
||||
<Japanese>耳栓を着け外す</Japanese>
|
||||
<Russian>Вставить/вынуть беруши</Russian>
|
||||
<Italian>Metti/Togli tappi</Italian>
|
||||
<Korean>귀마개 토글</Korean>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
@ -18,8 +18,8 @@ if (isServer) then {
|
||||
GVAR(intelData) = [true] call CBA_fnc_createNamespace;
|
||||
publicVariable QGVAR(intelData);
|
||||
|
||||
[QGVAR(handleMagIndex), FUNC(handleMagIndex)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setObjectData), FUNC(setObjectData)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(handleMagIndex), LINKFUNC(handleMagIndex)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setObjectData), LINKFUNC(setObjectData)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
if (hasInterface) then {
|
||||
|
@ -47,7 +47,7 @@ GVAR(ParsedTextCached) = [];
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
//Add Actions to Houses:
|
||||
["ace_interactMenuOpened", {_this call FUNC(userActions_addHouseActions)}] call CBA_fnc_addEventHandler;
|
||||
["ace_interactMenuOpened", LINKFUNC(userActions_addHouseActions)] call CBA_fnc_addEventHandler;
|
||||
|
||||
["ACE3 Common", QGVAR(InteractKey), (localize LSTRING(InteractKey)),
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ PREP_RECOMPILE_END;
|
||||
|
||||
if (!hasInterface) exitWith { ADDON = true; };
|
||||
|
||||
["All", "init", {_this call FUNC(compileMenu)}] call CBA_fnc_addClassEventHandler;
|
||||
["All", "init", LINKFUNC(compileMenu)] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
GVAR(ActNamespace) = [] call CBA_fnc_createNamespace;
|
||||
GVAR(ActSelfNamespace) = [] call CBA_fnc_createNamespace;
|
||||
|
@ -78,7 +78,7 @@ ACE_Modifier = 0;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (isServer) then {
|
||||
[QGVAR(replaceTerrainObject), FUNC(replaceTerrainObject)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(replaceTerrainObject), LINKFUNC(replaceTerrainObject)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
[] call FUNC(initItemContextMenu);
|
||||
|
||||
addUserActionEventHandler ["headlights", "Deactivate", FUNC(onLightToggled)];
|
||||
addUserActionEventHandler ["headlights", "Deactivate", LINKFUNC(onLightToggled)];
|
||||
|
||||
["ACE3 Equipment", QGVAR(hold), LLSTRING(MomentarySwitch), {
|
||||
ACE_player action ["GunLightOn", ACE_player];
|
||||
|
@ -7,6 +7,7 @@
|
||||
<Czech>ACE Kill Tracker</Czech>
|
||||
<Russian>ACE Отслеживание убийств</Russian>
|
||||
<Japanese>ACE キルトラッカー</Japanese>
|
||||
<Korean>ACE 킬트래커</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_KillTracker_Title">
|
||||
<English>ACE Killed Events</English>
|
||||
@ -99,6 +100,7 @@
|
||||
<Czech>Sledovat AI zabité hráči</Czech>
|
||||
<Russian>Отслеживание юнитов ИИ, убитых игроком</Russian>
|
||||
<Japanese>プレイヤーに殺害されたAIユニットを追跡</Japanese>
|
||||
<Korean>플레이어가 죽인 AI 트래킹</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_KillTracker_TrackAI_Description">
|
||||
<English>Defines if killed AIs will be shown in the kill tracker during mission debriefing.</English>
|
||||
@ -106,6 +108,7 @@
|
||||
<Czech>Udává zdali se zabité AI budou ukazovat v kill trackeru v průběhu debriefingu po misi.</Czech>
|
||||
<Russian>Определяет, будут ли убитые ИИ отображаться в трекере убийств во время дебрифинга миссии.</Russian>
|
||||
<Japanese>ミッションデブリーフィングのキルトラッカーに殺害されたAIが表示されるかどうかを定義します。</Japanese>
|
||||
<Korean>사후강평 중 살해된 AI가 킬트래킹에 표시되는지 여부를 정의합니다.</Korean>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
@ -55,5 +55,5 @@ TRACE_1("",GVAR(trackedLaserTargets));
|
||||
|
||||
if (GVAR(pfehID) == -1) then {
|
||||
TRACE_1("starting pfeh",count GVAR(trackedLaserTargets));
|
||||
GVAR(pfehID) = [DFUNC(laserTargetPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
GVAR(pfehID) = [LINKFUNC(laserTargetPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
@ -1,11 +1,11 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (hasInterface) then {
|
||||
["ace_interactMenuOpened", {_this call FUNC(interactEH)}] call CBA_fnc_addEventHandler;
|
||||
["ace_interactMenuOpened", LINKFUNC(interactEH)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
if (isServer) then {
|
||||
[QGVAR(destroyFence), {_this call FUNC(destroyFence)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(destroyFence), LINKFUNC(destroyFence)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
GVAR(possibleWirecutters) = call (uiNamespace getVariable [QGVAR(possibleWirecutters), {[]}]);
|
||||
|
@ -71,7 +71,7 @@
|
||||
|
||||
if (GVAR(BFT_Enabled) && {isNil QGVAR(BFT_markers)}) then {
|
||||
GVAR(BFT_markers) = [];
|
||||
[FUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
},
|
||||
false
|
||||
|
@ -2,10 +2,10 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
// recieve remote marker data
|
||||
[QGVAR(setMarkerNetwork), {_this call DFUNC(setMarkerNetwork)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setMarkerNetwork), LINKFUNC(setMarkerNetwork)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// recieve marker data for JIP
|
||||
[QGVAR(setMarkerJIP), {_this call DFUNC(setMarkerJIP)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setMarkerJIP), LINKFUNC(setMarkerJIP)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// request marker data for JIP
|
||||
if (isMultiplayer && {!isServer} && {hasInterface}) then {
|
||||
|
@ -37,5 +37,5 @@ if (_type == "marker" && {_marker find "_USER_DEFINED" != -1 && {_marker call FU
|
||||
|
||||
GVAR(moving) = true;
|
||||
_marker setMarkerAlphaLocal 0.5;
|
||||
[FUNC(movePFH), 0, [_marker, _ctrlMap, _originalPos, _originalAlpha]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(movePFH), 0, [_marker, _ctrlMap, _originalPos, _originalAlpha]] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
GVAR(useAceMedical) = ["ace_medical"] call EFUNC(common,isModLoaded);
|
||||
|
||||
// To support public API regardless of component settings
|
||||
[QGVAR(spurt), FUNC(spurt)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(spurt), LINKFUNC(spurt)] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (isServer) then {
|
||||
GVAR(bloodDrops) = [];
|
||||
@ -21,7 +21,7 @@ if (isServer) then {
|
||||
|
||||
// Start the cleanup loop
|
||||
if (_index == 0) then {
|
||||
[FUNC(cleanupLoop), [], GVAR(bloodLifetime)] call CBA_fnc_waitAndExecute;
|
||||
[LINKFUNC(cleanupLoop), [], GVAR(bloodLifetime)] call CBA_fnc_waitAndExecute;
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
@ -60,6 +60,6 @@ private _listCode = if (_mode == BLOOD_ONLY_PLAYERS) then {
|
||||
GVAR(stateMachine) = [_listCode, true] call CBA_statemachine_fnc_create;
|
||||
[GVAR(stateMachine), LINKFUNC(onBleeding), {}, {}, "Bleeding"] call CBA_statemachine_fnc_addState;
|
||||
|
||||
GVAR(woundReceivedEH) = [QEGVAR(medical,woundReceived), FUNC(handleWoundReceived)] call CBA_fnc_addEventHandler;
|
||||
GVAR(woundReceivedEH) = [QEGVAR(medical,woundReceived), LINKFUNC(handleWoundReceived)] call CBA_fnc_addEventHandler;
|
||||
|
||||
TRACE_3("Set up state machine and wounds event",_mode,GVAR(stateMachine),GVAR(woundReceivedEH));
|
||||
|
@ -30,7 +30,7 @@ GVAR(bloodTickCounter) = 0;
|
||||
|
||||
[false] call FUNC(initEffects);
|
||||
[true] call FUNC(handleEffects);
|
||||
[FUNC(handleEffects), 1, false] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(handleEffects), 1, false] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
["ace_unconscious", {
|
||||
params ["_unit", "_unconscious"];
|
||||
|
@ -41,7 +41,7 @@ if (GVAR(menuPFH) != -1) exitWith {
|
||||
TRACE_1("Menu PFH already running",GVAR(menuPFH));
|
||||
};
|
||||
|
||||
GVAR(menuPFH) = [FUNC(menuPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
GVAR(menuPFH) = [LINKFUNC(menuPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
// Hide categories if they don't have any actions (airway)
|
||||
private _list = [
|
||||
|
@ -1364,6 +1364,7 @@
|
||||
<Italian>Mostra stato di sanguinamento</Italian>
|
||||
<Portuguese>Mostrar estado de sangramento</Portuguese>
|
||||
<Japanese>出血状態の表示</Japanese>
|
||||
<Korean>출혈 상태 표시</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_GUI_showBleeding_Description">
|
||||
<English>Display if the patient is bleeding, optionally with rate</English>
|
||||
@ -1372,6 +1373,7 @@
|
||||
<Italian>Mostra se il paziente sta sanguinando, opzionalmente con rateo</Italian>
|
||||
<Portuguese>Mostrar se o paciente está sangrando, opcionalmente com taxa</Portuguese>
|
||||
<Japanese>患者が出血しているかどうかを表示します。オプションで出血速度も表示します</Japanese>
|
||||
<Korean>환자가 출혈 중인지 여부를 표시합니다(선택적으로 출혈 속도 포함)</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_GUI_ShowBleeding_Rate">
|
||||
<English>Show Bleeding Rate</English>
|
||||
@ -1380,6 +1382,7 @@
|
||||
<Italian>Mostra rateo di sanguinamento</Italian>
|
||||
<Portuguese>Mostrar taxa de sangramento</Portuguese>
|
||||
<Japanese>出血速度の表示</Japanese>
|
||||
<Korean>출혈 속도 표시</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_GUI_PeekMedicalOnHit_DisplayName">
|
||||
<English>Peek Medical Info on Hit</English>
|
||||
|
@ -5011,24 +5011,28 @@
|
||||
<Italian>Somministra Antidolorifici</Italian>
|
||||
<Russian>Испол-ть обезболивающие</Russian>
|
||||
<Japanese>鎮痛剤を投与</Japanese>
|
||||
<Korean>진통제 투여</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Treatment_Administering_Painkillers">
|
||||
<English>Administering Painkillers...</English>
|
||||
<Italian>Somministrando Antidolorifici...</Italian>
|
||||
<Russian>Использование обезболивающего...</Russian>
|
||||
<Japanese>鎮痛剤を投与しています・・・</Japanese>
|
||||
<Korean>진통제 투여 중...</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Treatment_painkillers_Desc_Short">
|
||||
<English>Over-the-counter analgesic used to combat light to moderate pain experiences.</English>
|
||||
<Italian>Antidolorifici senza prescrizione, usati per alleviare dolore leggero o moderato.</Italian>
|
||||
<Russian>Безрецептурный анальгетик, используемый для борьбы с легкими и умеренными болевыми ощущениями.</Russian>
|
||||
<Japanese>軽度から中程度の痛みに対処するために使用される市販の鎮痛薬。</Japanese>
|
||||
<Korean>가벼운 통증부터 중간 정도의 통증을 퇴치하는 데 사용되는 일반의약품 진통제입니다.</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Treatment_painkillers_Desc_Use">
|
||||
<English>Over-the-counter analgesic used to combat light to moderate pain experiences.</English>
|
||||
<Italian>Antidolorifici senza prescrizione, usati per alleviare dolore leggero o moderato.</Italian>
|
||||
<Russian>Безрецептурный анальгетик, используемый для борьбы с легкими и умеренными болевыми ощущениями.</Russian>
|
||||
<Japanese>軽度から中程度の痛みに対処するために使用される市販の鎮痛薬。</Japanese>
|
||||
<Korean>가벼운 통증부터 중간 정도의 통증을 퇴치하는 데 사용되는 일반의약품 진통제입니다.</Korean>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
@ -7,18 +7,21 @@
|
||||
<Italian>Parametri Vitali</Italian>
|
||||
<Russian>Жизненно-важные органы</Russian>
|
||||
<Japanese>バイタル</Japanese>
|
||||
<Korean>생명</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Vitals_simulateSpO2_DisplayName">
|
||||
<English>Enable SpO2 Simulation</English>
|
||||
<Italian>Abilita simulazione SpO2</Italian>
|
||||
<Russian>Включить имитацию SpO2</Russian>
|
||||
<Japanese>SpO2シミュレーションを有効化</Japanese>
|
||||
<Korean>산소포화도 시뮬레이션 활성화</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Vitals_simulateSpO2_Description">
|
||||
<English>Enables oxygen saturation simulation, providing variable heart rate and oxygen demand based on physical activity and altitude. Required for Airway Management.</English>
|
||||
<Italian>Abilita la simulazione della saturazione di ossigeno, alterando la frequenza cardiaca e consumo di ossigeno in funzione dell'attività fisica e l'altitudine. Richiesto per la gestione delle vie aeree.</Italian>
|
||||
<Russian>Позволяет имитировать насыщение кислородом, обеспечивая переменную частоту сердечных сокращений и потребность в кислороде в зависимости от физической активности и высоты над уровнем моря. Требуется для управления дыхательными путями.</Russian>
|
||||
<Japanese>酸素飽和度シミュレーションを有効にし、身体活動や標高に基づいて変動する心拍数と酸素要求量の機能を提供します。 気道管理に必要です。</Japanese>
|
||||
<Korean>산소포화도 시뮬레이션을 활성화하여 신체 활동과 고도에 따라 다양한 심박수와 산소 요구량을 제공합니다. 기도 관리에 필요합니다.</Korean>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
@ -35,7 +35,7 @@ private _closeCode = {
|
||||
}, ""] call CBA_fnc_addKeybind;
|
||||
|
||||
//Add Eventhandler:
|
||||
[QEGVAR(vector,rangefinderData), {_this call FUNC(recieveRangefinderData)}] call CBA_fnc_addEventHandler;
|
||||
[QEGVAR(vector,rangefinderData), LINKFUNC(recieveRangefinderData)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//Global Variables to default:
|
||||
GVAR(gpsPositionASL) = [0,0,0];
|
||||
|
@ -12,8 +12,8 @@ private _detectableClasses = call (uiNamespace getVariable [QGVAR(detectableClas
|
||||
} forEach _detectableClasses;
|
||||
TRACE_1("built cache",count allVariables GVAR(detectableClasses));
|
||||
|
||||
[QGVAR(enableDetector), FUNC(enableDetector)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(disableDetector), FUNC(disableDetector)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(enableDetector), LINKFUNC(enableDetector)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(disableDetector), LINKFUNC(disableDetector)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Shows detector and mine posistions in 3d when debug is on
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
|
@ -31,4 +31,4 @@ if (_unit == ACE_player) then {
|
||||
[QGVAR(detectorEnabled), [_unit, _detectorType]] call CBA_fnc_localEvent;
|
||||
|
||||
private _config = [_detectorType] call FUNC(getDetectorConfig);
|
||||
[FUNC(detectorLoop), 0.05, [_unit, _detectorType, _config, CBA_missionTime - 0.25]] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(detectorLoop), 0.05, [_unit, _detectorType, _config, CBA_missionTime - 0.25]] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -7,13 +7,13 @@ class Extended_PreStart_EventHandlers {
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_pre_init));
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_preInit));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_post_init));
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_postInit));
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
[QGVAR(handoff), {_this call FUNC(handleHandoff)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(handoff), LINKFUNC(handleHandoff)] call CBA_fnc_addEventHandler;
|
||||
|
||||
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode),
|
||||
{
|
@ -19,4 +19,4 @@ params ["_target", "_args"];
|
||||
|
||||
if (isNil "_target" || {isNull _target} || {!local _target} ) exitWith { false };
|
||||
|
||||
[FUNC(guidancePFH), 0, _args] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(guidancePFH), 0, _args] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -145,7 +145,7 @@ if (_onFiredFunc != "") then {
|
||||
// _stateParams params ["_lastRunTime", "_seekerStateParams", "_attackProfileStateParams", "_lastKnownPosState"];
|
||||
// _seekerParams params ["_seekerAngle", "_seekerAccuracy", "_seekerMaxRange", "_seekerMinRange"];
|
||||
|
||||
[FUNC(guidancePFH), 0, _args ] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(guidancePFH), 0, _args ] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
|
||||
/* Clears locking settings
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
if (hasInterface) then {
|
||||
#include "initKeybinds.inc.sqf"
|
||||
["ace_infoDisplayChanged", FUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
||||
["ace_infoDisplayChanged", LINKFUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
TRACE_4("CBA_settingsInitialized",GVAR(airResistanceEnabled),GVAR(allowComputerRangefinder),GVAR(allowCompass),GVAR(useAmmoHandling));
|
||||
|
||||
["vehicle", FUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", LINKFUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
if (!GVAR(airResistanceEnabled)) exitWith {};
|
||||
if (EGVAR(artillerytables,advancedCorrections)) exitWith { TRACE_1("defer firedEH to artillerytables",_this); };
|
||||
["Mortar_01_base_F", "fired", {call FUNC(handleFired)}] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
["Mortar_01_base_F", "fired", LINKFUNC(handleFired)] call CBA_fnc_addClassEventHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
@ -24,11 +24,11 @@
|
||||
params ["_vehicle", "", "", "", "", "", "_projectile"];
|
||||
|
||||
// Large enough distance to not simulate any wind deflection
|
||||
if (_vehicle distance ACE_player > 8000) exitWith {false};
|
||||
if (_vehicle distance ACE_player > 8000) exitWith {};
|
||||
|
||||
//AI will have no clue how to use:
|
||||
private _shooterMan = gunner _vehicle;
|
||||
if (!([_shooterMan] call EFUNC(common,isPlayer))) exitWith {false};
|
||||
if (!([_shooterMan] call EFUNC(common,isPlayer))) exitWith {};
|
||||
|
||||
//Calculate air density:
|
||||
private _altitude = (getPosASL _vehicle) select 2;
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
["unit", FUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", FUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
||||
["unit", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
["ACE3 Movement", QGVAR(climb), localize LSTRING(Climb), {
|
||||
// Conditions: canInteract
|
||||
|
@ -28,4 +28,4 @@ GVAR(camera) = objNull;
|
||||
}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
|
@ -5,5 +5,9 @@ private _category = [LELSTRING(common,categoryUncategorized), LLSTRING(aceNews)]
|
||||
LSTRING(showNewsOnMainMenu_name),
|
||||
_category,
|
||||
true,
|
||||
0
|
||||
0,
|
||||
{
|
||||
if (!hasInterface) exitWith {};
|
||||
profileNamespace setVariable [QGVAR(showNewsOnMainMenu), _this];
|
||||
}
|
||||
] call CBA_fnc_addSetting;
|
||||
|
@ -35,8 +35,8 @@ if (hasInterface) then {
|
||||
GVAR(storedSpareBarrels) = createHashMap;
|
||||
|
||||
// Install event handlers for spare barrels
|
||||
[QGVAR(sendSpareBarrelTemperatureHint), FUNC(sendSpareBarrelsTemperaturesHint)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(loadCoolestSpareBarrel), FUNC(loadCoolestSpareBarrel)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(sendSpareBarrelTemperatureHint), LINKFUNC(sendSpareBarrelsTemperaturesHint)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(loadCoolestSpareBarrel), LINKFUNC(loadCoolestSpareBarrel)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Schedule cool down calculation of stored spare barrels
|
||||
[] call FUNC(updateSpareBarrelsTemperaturesThread);
|
||||
@ -50,14 +50,14 @@ if (hasInterface) then {
|
||||
|
||||
//Add Take EH if required
|
||||
if (GVAR(unJamOnReload) || {GVAR(cookoffCoef) > 0}) then {
|
||||
["CAManBase", "Take", {_this call FUNC(handleTakeEH);}] call CBA_fnc_addClassEventHandler;
|
||||
["CAManBase", "Take", LINKFUNC(handleTakeEH)] call CBA_fnc_addClassEventHandler;
|
||||
};
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
// Only add eh to non local players if dispersion is enabled
|
||||
if (GVAR(overheatingDispersion) || {GVAR(showParticleEffectsForEveryone)}) then {
|
||||
["ace_firedPlayerNonLocal", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
// Schedule cool down calculation of player weapons at (infrequent) regular intervals
|
||||
@ -86,10 +86,10 @@ if (hasInterface) then {
|
||||
}] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
// Install event handler to display temp when a barrel was swapped
|
||||
[QGVAR(showWeaponTemperature), DFUNC(displayTemperature)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(showWeaponTemperature), LINKFUNC(displayTemperature)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Install event handler to initiate an assisted barrel swap
|
||||
[QGVAR(initiateSwapBarrelAssisted), DFUNC(swapBarrel)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(initiateSwapBarrelAssisted), LINKFUNC(swapBarrel)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Add an action to allow hot weapons to be cooled off in AceX Field Rations water sources
|
||||
if (["acex_field_rations"] call EFUNC(common,isModLoaded)) then {
|
||||
|
@ -34,9 +34,9 @@ if (!hasInterface) exitWith {};
|
||||
}, {false}, [24, [false, false, false]], false] call CBA_fnc_addKeybind;
|
||||
|
||||
// Handle reserve chute based on current backpack (fires when parachute opens too)
|
||||
["loadout", FUNC(handleReserve), true] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", LINKFUNC(handleReserve), true] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// Don't show vanilla speed and height when in expert mode
|
||||
["ace_infoDisplayChanged", {_this call FUNC(handleInfoDisplayChanged)}] call CBA_fnc_addEventHandler;
|
||||
["ace_infoDisplayChanged", LINKFUNC(handleInfoDisplayChanged)] call CBA_fnc_addEventHandler;
|
||||
|
||||
["vehicle", {_this call FUNC(handleFailureChance)}] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", LINKFUNC(handleFailureChance)] call CBA_fnc_addPlayerEventHandler;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(camShake)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(camShake)] call CBA_fnc_addEventHandler;
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
|
||||
if !GVAR(enabled) exitWith {};
|
||||
if (!GVAR(enabled)) exitWith {};
|
||||
|
||||
[QGVAR(setVehicleDamage), {_this call FUNC(setDamage)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setVehicleHitPointDamage), {_this call FUNC(setHitPointDamage)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setVehicleDamage), LINKFUNC(setDamage)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setVehicleHitPointDamage), LINKFUNC(setHitPointDamage)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setWheelHitPointDamage), {
|
||||
params ["_object", "_hitPoint", "_damage"];
|
||||
private _damageDisabled = !isDamageAllowed _object;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// by commy2
|
||||
#include "script_component.hpp"
|
||||
|
||||
["ace_rallypointMoved", FUNC(updateRallypoint)] call CBA_fnc_addEventHandler;
|
||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler; // hide enemy rallypoint markers
|
||||
["ace_rallypointMoved", LINKFUNC(updateRallypoint)] call CBA_fnc_addEventHandler;
|
||||
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler; // hide enemy rallypoint markers
|
||||
|
||||
[QGVAR(showFriendlyFireMessageEvent), FUNC(showFriendlyFireMessage)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(showFriendlyFireMessageEvent), LINKFUNC(showFriendlyFireMessage)] call CBA_fnc_addEventHandler;
|
||||
|
@ -382,7 +382,7 @@
|
||||
<Spanish>Este módulo permite usar puntos de reunión en la misión, a los que pueden teletransportarse las unidades desde la bandera de base. Requiere colocar objetos especiales en el mapa: las banderas de base y de reunión, ambas disponibles en la categoría Vacio-> Reaparición ACE</Spanish>
|
||||
<French>Ce module vous permet d'utiliser des points de ralliement dans les missions, vers lesquels vous pouvez vous téléporter rapidement depuis le drapeau de la base.\nNécessite de placer des objets spéciaux sur la carte - base et drapeau, tous deux disponibles dans la catégorie "Vide -> ACE Réapparition".</French>
|
||||
<Japanese>ミッションでベースから素早く移動できるラリーポイントを使えるようにします。ゲーム内に専用オブジェクトとなるベースとフラッグを設置している必要があります。両オブジェクトは Empty 下の ACE リスポーンから設置できます。</Japanese>
|
||||
<Korean>이 모듈은 미션 중에 기지 깃발에서 집결지로 빠르게 텔레포트 시켜주는 역할을 합니다. 지도 상에 기지 및 깃발이 필요합니다. 두 가지 모두 Empty->ACE Respawn 카테고리에서 찾을 수 있습니다.</Korean>
|
||||
<Korean>이 모듈은 미션 중에 기지 깃발에서 집결지로 빠르게 텔레포트 시켜주는 역할을 합니다. 지도 상에 기지 및 깃발이 필요합니다. 두 가지 모두 비어 있음->ACE 재투입 카테고리에서 찾을 수 있습니다.</Korean>
|
||||
<Chinesesimp>摆放此模块后,你将能在任务中部署集合点,使你可以快速往返基地与前线。要使用本功能,请记得放上空物体->ACE 重生里面的基地与旗帜。</Chinesesimp>
|
||||
<Chinese>擺放此模塊後,你將能在任務中佈署集合點,使你可以快速往返基地與前線。要使用本功能,請記得放上空物件->ACE 重生裡面的基地與旗幟</Chinese>
|
||||
</Key>
|
||||
|
@ -15,11 +15,11 @@ GVAR(deployDirection) = 0;
|
||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Cancel deploy on player change. This does work when returning to lobby, but not when hard disconnecting.
|
||||
["unit", {_this call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", {_this call FUNC(handlePlayerInventoryChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", LINKFUNC(handlePlayerInventoryChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// handle waking up dragged unit and falling unconscious while dragging
|
||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
||||
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//@todo Captivity?
|
||||
|
@ -24,7 +24,7 @@ GVAR(scopeAdjust) = [[[0,0],0,[0,0],0], [[0,0],0,[0,0],0], [[0,0],0,[0,0],0]];
|
||||
};
|
||||
|
||||
// Check inventory when it changes
|
||||
["loadout", FUNC(inventoryCheck), true] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", LINKFUNC(inventoryCheck), true] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// Instantly hide knobs when scoping in
|
||||
["cameraView", {
|
||||
@ -140,7 +140,7 @@ GVAR(scopeAdjust) = [[[0,0],0,[0,0],0], [[0,0],0,[0,0],0], [[0,0],0,[0,0],0]];
|
||||
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
@ -10,7 +10,7 @@ if (!hasInterface) exitWith {};
|
||||
if (!XGVAR(enable)) exitWith {};
|
||||
|
||||
// Initialize classes as they spawn
|
||||
["ThingX", "init", FUNC(addSitActions), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||
["ThingX", "init", LINKFUNC(addSitActions), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
// Initialize statically defined benches (also appear as world objects, no class EH thrown)
|
||||
{
|
||||
@ -21,6 +21,6 @@ if (!hasInterface) exitWith {};
|
||||
["isNotSitting", {isNil {(_this select 0) getVariable QGVAR(sittingStatus)}}] call EFUNC(common,addCanInteractWithCondition);
|
||||
|
||||
// Handle interruptions
|
||||
["ace_unconscious", {_this call DFUNC(handleInterrupt)}] call CBA_fnc_addEventHandler;
|
||||
["ace_captives_SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call CBA_fnc_addEventHandler;
|
||||
["ace_unconscious", LINKFUNC(handleInterrupt)] call CBA_fnc_addEventHandler;
|
||||
["ace_captives_SetHandcuffed", LINKFUNC(handleInterrupt)] call CBA_fnc_addEventHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
@ -17,10 +17,10 @@ GVAR(currentAngle) = 0;
|
||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Cancel adjusting on player change.
|
||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// handle falling unconscious
|
||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
||||
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// @todo captivity?
|
||||
|
@ -14,7 +14,7 @@ if (hasInterface) then {
|
||||
call FUNC(compileConfigTags);
|
||||
|
||||
// Scripted tag adding EH
|
||||
[QGVAR(applyCustomTag), FUNC(applyCustomTag)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(applyCustomTag), LINKFUNC(applyCustomTag)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Keybind
|
||||
["ACE3 Equipment", QGVAR(quickTag), localize LSTRING(QuickTag), {
|
||||
@ -32,4 +32,4 @@ if (!isServer) exitWith {};
|
||||
GVAR(testingThread) = false;
|
||||
GVAR(tagsToTest) = [];
|
||||
|
||||
[QGVAR(createTag), DFUNC(createTag)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(createTag), LINKFUNC(createTag)] call CBA_fnc_addEventHandler;
|
||||
|
@ -27,11 +27,11 @@ GVAR(digDirection) = 0;
|
||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Cancel dig on player change. This does work when returning to lobby, but not when hard disconnecting.
|
||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", FUNC(handlePlayerInventoryChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["loadout", LINKFUNC(handlePlayerInventoryChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// handle waking up dragged unit and falling unconscious while dragging
|
||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
||||
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//@todo Captivity?
|
||||
|
@ -10,10 +10,10 @@ GVAR(height) = 0.5;
|
||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Cancel adjusting on player change.
|
||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// handle falling unconscious
|
||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
||||
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||
|
||||
// @todo captivity?
|
||||
|
@ -19,9 +19,8 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
|
||||
["ace_infoDisplayChanged", {
|
||||
// Selective UI Advanced
|
||||
// Defaults must be set in this EH to make sure controls are activated and advanced settings can be modified
|
||||
private _force = [true, false] select (GVAR(allowSelectiveUI));
|
||||
{
|
||||
[_x, missionNamespace getVariable (format [QGVAR(%1), _x]), false, _force] call FUNC(setAdvancedElement);
|
||||
[_x, missionNamespace getVariable (format [QGVAR(%1), _x]), false, !GVAR(allowSelectiveUI)] call FUNC(setAdvancedElement);
|
||||
} forEach (allVariables GVAR(configCache));
|
||||
|
||||
// Execute local event for when it's safe to modify UI through this API
|
||||
@ -49,4 +48,4 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
["unit", FUNC(handlePlayerChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||
["unit", LINKFUNC(handlePlayerChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||
|
@ -38,7 +38,7 @@ private _fnc_setPFH = {
|
||||
};
|
||||
|
||||
GVAR(currentMode) = _this;
|
||||
GVAR(holdKeyHandler) = [FUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||
GVAR(holdKeyHandler) = [LINKFUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
||||
switch (_this select 0) do {
|
||||
|
@ -22,7 +22,7 @@ private _fnc_setPFH = {
|
||||
};
|
||||
|
||||
GVAR(currentMode) = _this;//
|
||||
GVAR(holdKeyHandler) = [FUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||
GVAR(holdKeyHandler) = [LINKFUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
||||
switch (_this select 0) do {
|
||||
|
@ -1,14 +1,14 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
//Add Event Handlers
|
||||
[QGVAR(setupCustomKey), {_this call FUNC(serverSetupCustomKeyEH)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setVehicleLock), {_this call FUNC(setVehicleLockEH)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setupCustomKey), LINKFUNC(serverSetupCustomKeyEH)] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setVehicleLock), LINKFUNC(setVehicleLockEH)] call CBA_fnc_addEventHandler;
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
TRACE_2("SettingsInitialized eh",GVAR(LockVehicleInventory),GVAR(VehicleStartingLockState));
|
||||
|
||||
if (hasInterface && {GVAR(LockVehicleInventory)}) then {
|
||||
["CAManBase", "InventoryOpened", {_this call FUNC(onOpenInventory)}] call CBA_fnc_addClassEventHandler;
|
||||
["CAManBase", "InventoryOpened", LINKFUNC(onOpenInventory)] call CBA_fnc_addClassEventHandler;
|
||||
};
|
||||
if (isServer && {GVAR(VehicleStartingLockState) != -1}) then {
|
||||
[{
|
||||
|
@ -41,7 +41,7 @@ if (_objectViewDistanceCoeff isEqualType 0) then {
|
||||
} else {
|
||||
if (isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
||||
GVAR(fovBasedPFHminimalViewDistance) = getObjectViewDistance select 0; // Minimal view distance holder and PFH isRunning variable
|
||||
[FUNC(setFovBasedOvdPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(setFovBasedOvdPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -210,4 +210,4 @@ if (!hasInterface) exitWith {};
|
||||
[0, [false, false, false]]] call CBA_fnc_addKeybind;
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
if (GVAR(windSimulation)) then {
|
||||
call FUNC(initWind);
|
||||
[FUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
[FUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
||||
[LINKFUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
@ -9,12 +9,12 @@ GVAR(trackedBullets) = [];
|
||||
if (!GVAR(enabled)) exitWith {};
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (GVAR(vehicleEnabled)) then {
|
||||
["ace_firedPlayerVehicle", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerVehicleNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerVehicle", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerVehicleNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
[] call FUNC(updateTrajectoryPFH);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user