156 {
157 string type = "RemoteDetonatorTrigger";
159 PlayerBase player = PlayerBase.Cast(pEntity);
160 if (player)
161 {
162 ItemBase inHandsItem = player.GetItemInHands();
163 if (inHandsItem)
164 {
165 if (deviceToPair)
166 {
167 ReplaceDetonatorItemOnArmLambda onArmLambda = new ReplaceDetonatorItemOnArmLambda(inHandsItem, type);
168 onArmLambda.SetPairDevice(deviceToPair);
169 MiscGameplayFunctions.TurnItemIntoItemEx(player, onArmLambda);
170 }
171 else
172 {
173 ReplaceDetonatorItemLambda lambda = new ReplaceDetonatorItemLambda(inHandsItem, type);
174 MiscGameplayFunctions.TurnItemIntoItemEx(player, lambda);
175 }
176
177
179 }
180 else
182
184 if (player.GetItemInHands())
185 player.GetItemAccessor().OnItemInHandsChanged();
186 }
187
188 return rdt;
189 }
class GP5GasMask extends MaskBase ItemBase
void RemoteDetonatorTrigger()