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

◆ CommandHandler()

void PluginDayzPlayerDebug_Weapons::CommandHandler ( )
inlineprivate

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

432 {
433
434 // last action again
435 if (KeyState(KeyCode.KC_MULTIPLY) == 1)
436 {
437 ClearKey(KeyCode.KC_MULTIPLY);
440
441 Print("DayzPlayerImplement_Weapons OnKC_MULTIPLY");
442 }
443
444
445 if (m_CH_WeapAction >= 0)
446 {
449
451 DayZPlayer player = DayZPlayer.Cast( GetGame().GetPlayer() );
452 if (player != NULL)
453 {
454 HumanCommandWeapons hcw = player.GetCommandModifier_Weapons();
457
458 Print("DayzPlayerImplement_Weapons::WeaponsStartAction2");
459
460 }
461
462 m_CH_WeapAction = -1;
463 }
464
465 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
proto native void SetActionProgressParams(float pStart, float pEnd)
sets start and end animation position - f.e. for reload clip action
proto native bool StartAction(WeaponActions pAction, int pActionType)
start reload,mechanism,chambering,unjam ...
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
proto native void ClearKey(KeyCode key)
KeyCode
Определения EnSystem.c:157
proto native int KeyState(KeyCode key)
void HumanCommandWeapons()
Определения human.c:1113

Перекрестные ссылки ClearKey(), GetGame(), GetPlayer(), KeyState(), m_CH_LastWeapAction, m_CH_LastWeapActionType, m_CH_WeapAction, m_CH_WeapActionProgressEnd, m_CH_WeapActionProgressStart, m_CH_WeapActionType, Print(), HumanCommandWeapons::SetActionProgressParams() и HumanCommandWeapons::StartAction().