DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SetupAnimation()

void SetupAnimation ( ItemBase item)

См. определение в файле ActionDeployObject.c строка 318

319 {
320 if (item.IsDeployable())
321 {
322 if (item.IsHeavyBehaviour())
323 {
324 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_HEAVY;
325 }
326 else if (item.IsOneHandedBehaviour())
327 {
328 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_1HD;
329 }
330 else if (item.IsTwoHandedBehaviour())
331 {
332 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_2HD;
333 }
334 else
335 {
336 Debug.Log("Error: check " + item + " behaviour");
337 }
338 }
339 else
340 {
341 if (item.IsHeavyBehaviour())
342 {
343 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_HEAVY;
344 }
345 else if (item.IsOneHandedBehaviour())
346 {
347 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_1HD;
348 }
349 else if (item.IsTwoHandedBehaviour())
350 {
351 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_2HD;
352 }
353 else
354 {
355 Debug.Log("Error: check " + item + " behaviour");
356 }
357 }
358 }
int m_CommandUID
Определения ActionBase.c:31
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Определения 3_Game/tools/Debug.c:122
Определения 3_Game/tools/Debug.c:2
override bool IsDeployable()
Определения BaseBuildingBase.c:365
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки ItemBase::IsDeployable(), Debug::Log() и m_CommandUID.

Используется в SetupAction().