From b182212ecfd5c40f573ecaac661f1ea2d5747121 Mon Sep 17 00:00:00 2001 From: Jacob Schmidt Date: Sun, 17 May 2026 11:19:10 -0500 Subject: [PATCH] Rename actor bootstrap flow to welcome new actors - Rename the ActorStore method to `welcomeNewActor` - Update the bank account created event handler and token name to match --- arma/server/addons/actor/XEH_postInit.sqf | 6 +++--- arma/server/addons/actor/functions/fnc_initActorStore.sqf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arma/server/addons/actor/XEH_postInit.sqf b/arma/server/addons/actor/XEH_postInit.sqf index d1d67ea..d06a0ed 100644 --- a/arma/server/addons/actor/XEH_postInit.sqf +++ b/arma/server/addons/actor/XEH_postInit.sqf @@ -2,7 +2,7 @@ if (isNil QEGVAR(common,EventBus)) then { call EFUNC(common,eventBus); }; if (isNil QGVAR(BankAccountCreatedEventTokens)) then { - private _bootstrapNewActorFromBankAccount = { + private _welcomeNewActor = { params ["_event"]; private _uid = _event getOrDefault ["uid", ""]; @@ -19,10 +19,10 @@ if (isNil QGVAR(BankAccountCreatedEventTokens)) then { _actor set ["uid", _uid]; }; - GVAR(ActorStore) call ["bootstrapNewActor", [_uid, _actor]]; + GVAR(ActorStore) call ["welcomeNewActor", [_uid, _actor]]; }; GVAR(BankAccountCreatedEventTokens) = [ - EGVAR(common,EventBus) call ["on", ["bank.account.created", _bootstrapNewActorFromBankAccount, "actor.newActor.bootstrap"]] + EGVAR(common,EventBus) call ["on", ["bank.account.created", _welcomeNewActor, "actor.newActor.welcome"]] ]; }; diff --git a/arma/server/addons/actor/functions/fnc_initActorStore.sqf b/arma/server/addons/actor/functions/fnc_initActorStore.sqf index 88171d3..8f60179 100644 --- a/arma/server/addons/actor/functions/fnc_initActorStore.sqf +++ b/arma/server/addons/actor/functions/fnc_initActorStore.sqf @@ -203,7 +203,7 @@ GVAR(ActorBaseStore) = compileFinal createHashMapFromArray [ true }], - ["bootstrapNewActor", compileFinal { + ["welcomeNewActor", compileFinal { params [["_uid", "", [""]], ["_actor", createHashMap, [createHashMap]]]; if (_uid isEqualTo "") exitWith { false };