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

◆ Hit_Start()

void PluginDayzPlayerDebug_OtherCmds::Hit_Start ( )
inlineprivate

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

144 {
145 DayZPlayer player = DayZPlayer.Cast( g_Game.GetPlayer() );
146 if( !player )
147 return;
148
149 float hitDirection = m_DeathDirectionEdit.GetText().ToInt();
150 int hitType = m_HitTypeCB.GetCurrentItem();
151 if( hitType == 0 )
152 {
153 player.AddCommandModifier_Damage(0, hitDirection);
154 }
155 else
156 {
157 player.StartCommand_Damage(0, hitDirection);
158 }
159 }
DayZGame g_Game
Определения DayZGame.c:3942

Перекрестные ссылки g_Game, m_DeathDirectionEdit и m_HitTypeCB.

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