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

◆ CommandHandler()

void PluginBase::CommandHandler ( DayZInfected infected)
inlineprotected

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

381 {
382 if( infected != m_ControlledInfected )
383 return;
384
385 infected.GetInputController().OverrideMovementSpeed(true, m_MovementSpeedEB.GetText().ToFloat());
386
387 DayZInfectedCommandMove moveCommand = infected.GetCommand_Move();
388 if( moveCommand )
389 {
390 moveCommand.SetStanceVariation(m_StanceCB.GetCurrentItem());
391 moveCommand.SetIdleState(m_MindStateCB.GetCurrentItem());
392 }
393
394 if( m_CH_DoTurn )
395 {
396 moveCommand.StartTurn(m_TurnDirectionEB.GetText().ToFloat(), m_TurnTypeCB.GetCurrentItem());
397 m_CH_DoTurn = false;
398 }
399 if( m_CH_DoVault )
400 {
401 infected.StartCommand_Vault(m_VaultingCB.GetCurrentItem());
402 m_CH_DoVault = false;
403 }
404 if( m_CH_DoKnucleOut )
405 {
406 infected.StartCommand_Vault(-1);
407 m_CH_DoKnucleOut = false;
408 }
409 if( m_CH_GoToCrawl )
410 {
411 infected.StartCommand_Crawl(m_CrawlingTypeCB.GetCurrentItem());
412 m_CH_GoToCrawl = false;
413 }
414 if( m_CH_DoHit )
415 {
416 float hitDir = m_HitDirEB.GetText().ToFloat();
417 int bodyPart = m_HitBodyPartCB.GetCurrentItem();
418 bool heavyHit = m_HitTypeCB.GetCurrentItem() == 1;
419
420 infected.StartCommand_Hit(heavyHit, bodyPart, hitDir);
421
422 m_CH_DoHit = false;
423 }
424 if( m_CH_StartDeath )
425 {
426 int deathType = m_DeathTypeCB.GetCurrentItem();
427 float deathDir = m_HitDirEB.GetText().ToFloat();
428
429 infected.StartCommand_Death(deathType, deathDir);
430
431 m_CH_StartDeath = false;
432 }
433 if( m_CH_DoAttack )
434 {
435 float attackDir = m_AttackDirCB.GetCurrentItem();
436 int attackType = m_AttackDescriptors.Get(m_AttackTypeCB.GetCurrentItem()).animValue;
437
438 infected.StartCommand_Attack(null, attackType, attackDir);
439
440 m_CH_DoAttack = false;
441 }
442 }
EditBoxWidget m_TurnDirectionEB
Определения PluginDayZInfectedDebug.c:61
XComboBoxWidget m_HitTypeCB
Определения PluginDayZInfectedDebug.c:72
XComboBoxWidget m_DeathTypeCB
Определения PluginDayZInfectedDebug.c:76
bool m_CH_StartDeath
Определения PluginDayZInfectedDebug.c:92
ref array< ref PluginDayZInfectedDebugAttackDesc > m_AttackDescriptors
Определения PluginDayZInfectedDebug.c:96
XComboBoxWidget m_VaultingCB
Определения PluginDayZInfectedDebug.c:63
XComboBoxWidget m_HitBodyPartCB
Определения PluginDayZInfectedDebug.c:73
XComboBoxWidget m_AttackDirCB
Определения PluginDayZInfectedDebug.c:80
bool m_CH_DoAttack
Определения PluginDayZInfectedDebug.c:93
XComboBoxWidget m_TurnTypeCB
Определения PluginDayZInfectedDebug.c:60
EditBoxWidget m_HitDirEB
fight card
Определения PluginDayZInfectedDebug.c:71
bool m_CH_DoHit
Определения PluginDayZInfectedDebug.c:91
XComboBoxWidget m_StanceCB
movement card
Определения PluginDayZInfectedDebug.c:55
XComboBoxWidget m_AttackTypeCB
Определения PluginDayZInfectedDebug.c:79
EditBoxWidget m_MovementSpeedEB
Определения PluginDayZInfectedDebug.c:57
DayZInfected m_ControlledInfected
controlled instance
Определения PluginDayZInfectedDebug.c:84
bool m_CH_DoVault
Определения PluginDayZInfectedDebug.c:88
bool m_CH_DoKnucleOut
Определения PluginDayZInfectedDebug.c:89
bool m_CH_GoToCrawl
Определения PluginDayZInfectedDebug.c:90
bool m_CH_DoTurn
command handler values
Определения PluginDayZInfectedDebug.c:87
XComboBoxWidget m_CrawlingTypeCB
Определения PluginDayZInfectedDebug.c:67
XComboBoxWidget m_MindStateCB
Определения PluginDayZInfectedDebug.c:56

Перекрестные ссылки m_AttackDescriptors, m_AttackDirCB, m_AttackTypeCB, m_CH_DoAttack, m_CH_DoHit, m_CH_DoKnucleOut, m_CH_DoTurn, m_CH_DoVault, m_CH_GoToCrawl, m_CH_StartDeath, m_ControlledInfected, m_CrawlingTypeCB, m_DeathTypeCB, m_HitBodyPartCB, m_HitDirEB, m_HitTypeCB, m_MindStateCB, m_MovementSpeedEB, m_StanceCB, m_TurnDirectionEB, m_TurnTypeCB и m_VaultingCB.