310 {
312
313
314 PlayerBase player = PlayerBase.Cast(p);
315
316 if (player)
317 {
318 ItemBase weapon = player.GetItemInHands();
319
320 if (weapon && weapon.GetOverheatingValue() > 0)
321 {
322 Weapon_Base weapon_base = Weapon_Base.Cast(weapon);
324
325 if (weapon_base)
326 suppressor = weapon_base.GetAttachedSuppressor();
327
328 ItemBase.PlayBulletCasingEjectParticles(weapon,
"", weapon, suppressor,
"CfgWeapons" );
329 }
330 }
331 }
class GP5GasMask extends MaskBase ItemBase