Fix action constructor: real anim constant + drop nonexistent member

CMD_ACTIONFB_ONCE does not exist in DayZPlayerConstants (only CMD_ACTIONMOD_*).
Use CMD_ACTIONMOD_OPENITEM (the 'open item' channel anim). Also remove
m_ReloadFinishAnim, which is not a member of ActionBase/ActionContinuousBase.
Verified the whole action file's symbols against P:\scripts vanilla source.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
smthspec 2026-06-20 00:15:30 +03:00
parent f7df4555cc
commit 249dcc6134

View file

@ -34,9 +34,8 @@ class YALB_ActionOpenLootbox : ActionContinuousBase
void YALB_ActionOpenLootbox()
{
m_CallbackClass = YALB_OpenLootboxCB;
m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_ONCE; // generic "use" anim hook
m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENITEM; // "open item" channel anim
m_FullBody = false;
m_ReloadFinishAnim = false;
}
override void CreateConditionComponents()