/
SN1054NGC
/
DayZ_Projects_cpp
Обзор
Документация
Войти
/
SN1054NGC
/
DayZ_Projects_cpp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
scripts/4_world/classes/useractionscomponent/actions/actioninteractloopbase.c
40 строк
959 B
SN1054NGC
Initial DayZ mod project commit
26 ноя 2025, 01:03
26 ноя 2025, 01:03
fddb039
Код
Авторство
О чём код?
class ActionInteractLoopBaseCB : ActionInteractBaseCB { bool CancelCondition() { if ( !m_ActionData ) { return DefaultCancelCondition(); } //SetCommand(DayZPlayerConstants.CMD_ACTIONINT_ACTIONLOOP); //Print("cancel condition enabled: " + GetState().ToString() ); if ( !m_Interrupted && (GetState() == STATE_LOOP_LOOP || GetState() == STATE_LOOP_LOOP2) ) { AnimatedActionBase action = AnimatedActionBase.Cast(m_ActionData.m_Action); action.Do(m_ActionData,m_ActionData.m_State); } return DefaultCancelCondition(); } override void CreateActionComponent() { m_ActionData.m_ActionComponent = new CAInteract; } override void InitActionComponent() { super.InitActionComponent(); EnableCancelCondition(true); } }; class ActionInteractLoopBase : ActionInteractBase { void ActionInteractLoopBase() { m_CallbackClass = ActionInteractLoopBaseCB; m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT; } };