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

◆ GetInjuryLevel()

eInjuryHandlerLevels GetInjuryLevel ( float health)
private

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

193 {
194 if ( health < InjuryHandlerThresholds.RUINED )
195 {
196 return eInjuryHandlerLevels.RUINED;
197 }
198
200 {
201 return eInjuryHandlerLevels.BADLY_DAMAGED;
202 }
203
204 if ( health < InjuryHandlerThresholds.DAMAGED )
205 {
206 return eInjuryHandlerLevels.DAMAGED;
207 }
208
209 if ( health < InjuryHandlerThresholds.WORN )
210 {
211 return eInjuryHandlerLevels.WORN;
212 }
213
214 return eInjuryHandlerLevels.PRISTINE;
215 }
eInjuryHandlerLevels
Определения InjuryHandler.c:19
const float WORN
Определения InjuryHandler.c:3
const float RUINED
Определения InjuryHandler.c:6
const float DAMAGED
Определения InjuryHandler.c:4
const float BADLY_DAMAGED
Определения InjuryHandler.c:5

Перекрестные ссылки InjuryHandlerThresholds::BADLY_DAMAGED, InjuryHandlerThresholds::DAMAGED, InjuryHandlerThresholds::RUINED и InjuryHandlerThresholds::WORN.

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