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

◆ OnExecute()

override void ActionStopEngine::OnExecute ( ActionData action_data)
inlineprivate

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

36 {
37 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
38 if (!vehCommand)
39 return;
40
41 auto vehicle = CarScript.Cast(vehCommand.GetTransport());
42 if (!vehicle)
43 return;
44
45 if (vehicle.GetNetworkMoveStrategy() == NetworkMoveStrategy.PHYSICS)
46 {
47 // Only perform on clients (or robos), validation is performed in C++
48 if (action_data.m_Player.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
49 {
50 return;
51 }
52 }
53 else
54 {
55 if (g_Game.IsClient())
56 return;
57 }
58
59 vehicle.EngineStop();
60 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native Transport GetTransport()
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068

Перекрестные ссылки ActionData, g_Game и HumanCommandVehicle::GetTransport().