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

◆ EEFired()

void Weapon::EEFired ( int muzzleType,
int mode,
string ammoType )
inlineprotected

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

342 {
343 if ( !GetGame().IsDedicatedServer() )
344 {
345 ItemBase suppressor = GetAttachedSuppressor();
346
347 // Muzzle flash & overheating effects
348 ItemBase.PlayFireParticles(this, muzzleType, ammoType, this, suppressor, "CfgWeapons" );
349 IncreaseOverheating(this, ammoType, this, suppressor, "CfgWeapons");
350
351 if (suppressor)
352 {
353 ItemBase.PlayFireParticles(this, muzzleType, ammoType, suppressor, NULL, "CfgVehicles" );
354 suppressor.IncreaseOverheating(this, ammoType, this, suppressor, "CfgVehicles");
355 }
356 }
357
358 //obsolete, replaced by C++ solution!
359/*
360 if (GetGame().IsServer())
361 {
362 AddHealth("","Health",-m_DmgPerShot); //damages weapon
363 if (suppressor)
364 suppressor.AddHealth("","Health",-m_DmgPerShot); //damages suppressor; TODO add suppressor damage coeficient/parameter (?) to suppressors/weapons (?)
365 }
366*/
367 //JamCheck(muzzleType);
368
369 #ifdef DIAG_DEVELOPER
370 MiscGameplayFunctions.UnlimitedAmmoDebugCheck(this);
371 #endif
372 }
class GP5GasMask extends MaskBase ItemBase
void IncreaseOverheating(ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
Определения ItemBase.c:5364
proto native CGame GetGame()

Перекрестные ссылки GetGame() и IncreaseOverheating().