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

◆ CopyOldPropertiesToNew()

override void UnboxLambda::CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate

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

76 {
77 super.CopyOldPropertiesToNew(old_item, new_item);
78
79 if ( GetGame().ConfigIsExisting( "CfgMagazines " + m_NewItemType ) )
80 {
81 Magazine pile;
82 Class.CastTo(pile, new_item);
83 pile.ServerSetAmmoCount(m_ItemCount);
84 }
85 else
86 {
87 ItemBase unboxed;
88 Class.CastTo(unboxed, new_item);
89 unboxed.SetQuantity(m_ItemCount);
90 }
91 }
class GP5GasMask extends MaskBase ItemBase
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Определения PileOfWoodenPlanks.c:88
int m_ItemCount
Определения ActionUnpackBox.c:72
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), GetGame(), m_ItemCount, ReplaceItemWithNewLambdaBase::m_NewItemType и ItemBase::SetQuantity().