342 {
343 auto player = PlayerBase.Cast(GetHierarchyRootPlayer());
344
345 if ( !
g_Game.IsHeadlessOrDedicatedServer() )
346 {
347 ItemBase suppressor = GetAttachedSuppressor();
348
349
350 ItemBase.PlayFireParticles(
this, muzzleType,
ammoType,
this, suppressor,
"CfgWeapons" );
352
353 if (suppressor)
354 {
355 ItemBase.PlayFireParticles(
this, muzzleType,
ammoType, suppressor, NULL,
"CfgVehicles" );
356 suppressor.IncreaseOverheating(
this,
ammoType,
this, suppressor,
"CfgVehicles");
357 }
358 }
359
360
361 #ifdef DIAG_DEVELOPER
362 MiscGameplayFunctions.UnlimitedAmmoDebugCheck(this);
363 #endif
364 }
class GP5GasMask extends MaskBase ItemBase
void IncreaseOverheating(ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)