350 {
351
353 {
355
357 {
359 }
360 else
361 {
363 {
365 ingredient.AddHealth("","",health_delta);
366 }
368 {
370 ingredient.SetHealth("","",new_health);
371 }
373 {
375
376 if (!ingredient.IsMagazine())
377 {
379 bool isDestroyed = obj.AddQuantity(quantity_delta, true);
380 if (isDestroyed)
381 {
382 continue;
383 }
384 }
385 else
386 {
387 Magazine mag = Magazine.Cast(ingredient);
388 int newQuantity = mag.GetAmmoCount() + quantity_delta;
389 if (newQuantity <= 0)
390 {
392 continue;
393 }
394 else
395 {
396 mag.ServerSetAmmoCount(newQuantity);
397 }
398 }
399 }
400 }
401 }
402 }
class GP5GasMask extends MaskBase ItemBase
const int MAX_NUMBER_OF_INGREDIENTS
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
ref array< ItemBase > m_IngredientsToBeDeleted