100 {
101 if (item1 == NULL || item2 == NULL) return false;
102
105
106 bool found = false;
108 {
109 found = false;
111 for (
int x = 0;
x < tempArray.Count();
x++)
112 {
114 {
116 {
118 if (tempArray.Get(
x) == item.GetType() ||
GetGame().IsKindOf(item.GetType(),tempArray.Get(
x)))
119 {
120 found = true;
121
124 }
125 }
126 if (found) break;
127 }
128 if (found) break;
129 }
130 if (!found) return false;
131 }
132
133 if (found)
134 {
135 return true;
136 }
137 else
138 {
139 return false;
140 }
141 }
class GP5GasMask extends MaskBase ItemBase
const int MAX_NUMBER_OF_INGREDIENTS
ref array< string > m_Ingredients[MAX_NUMBER_OF_INGREDIENTS]
ItemBase m_Items[MAX_NUMBER_OF_INGREDIENTS]
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
proto native CGame GetGame()