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

◆ CalculateQuantity()

void FlammableBase::CalculateQuantity ( )
inlineprotected

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

416 {
417 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
418 {
419 SetQuantityNormalized(GetCompEM().GetEnergy0To1());
420 }
421 }
void SetQuantityNormalized(float value, bool destroy_config=true, bool destroy_forced=false)
Sets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config...
Определения ItemBase.c:8078
proto native CGame GetGame()

Перекрестные ссылки GetGame() и SetQuantityNormalized().

Используется в ConsumeFuelFromBottle(), ConsumeFuelFromGasStation(), ConsumeLard(), EEItemAttached(), EEItemDetached(), OnAttachmentQuantityChangedEx(), OnDebugSpawn(), OnWork(), OnWorkStop() и Upgrade().