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

◆ SetupAnimation()

void SetupAnimation ( ItemBase item)

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

307 {
308 if (item.IsDeployable())
309 {
310 if (item.IsHeavyBehaviour())
311 {
312 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_HEAVY;
313 }
314 else if (item.IsOneHandedBehaviour())
315 {
316 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_1HD;
317 }
318 else if (item.IsTwoHandedBehaviour())
319 {
320 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_2HD;
321 }
322 else
323 {
324 Debug.Log("Error: check " + item + " behaviour");
325 }
326 }
327 else
328 {
329 if (item.IsHeavyBehaviour())
330 {
331 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_HEAVY;
332 }
333 else if (item.IsOneHandedBehaviour())
334 {
335 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_1HD;
336 }
337 else if (item.IsTwoHandedBehaviour())
338 {
339 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_2HD;
340 }
341 else
342 {
343 Debug.Log("Error: check " + item + " behaviour");
344 }
345 }
346 }
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/DayZ/tools/Debug.c:182
Определения 3_Game/DayZ/tools/Debug.c:2
override bool IsDeployable()
Определения BaseBuildingBase.c:365
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

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

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