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

◆ EEFired()

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

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

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

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