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

◆ OnVehicleJumpOutServer()

void BoatScript::OnVehicleJumpOutServer ( GetOutTransportActionData data)
inlineprotected

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

535 {
536 vector posMS = data.m_Player.WorldToModel(data.m_Player.GetPosition());
537 float healthCoef = Math.InverseLerp(ActionGetOutTransport.HEALTH_LOW_SPEED_VALUE, ActionGetOutTransport.HEALTH_HIGH_SPEED_VALUE, data.m_Speed) * 0.5;
538 healthCoef = Math.Clamp(healthCoef, 0.0, 1.0);
539 data.m_Player.ProcessDirectDamage(DamageType.CUSTOM, data.m_Player, "", "FallDamageHealth", posMS, healthCoef);
540 }
DamageType
exposed from C++ (do not change)
Определения DamageSystem.c:11

Перекрестные ссылки Math::Clamp(), ActionGetOutTransport::HEALTH_HIGH_SPEED_VALUE, ActionGetOutTransport::HEALTH_LOW_SPEED_VALUE, Math::InverseLerp() и GetOutTransportActionData::m_Speed.

Используется в ActionGetOutTransport::ApplyJumpOutDmg().