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

Закрытые члены

override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 

Закрытые данные

const int SLOTS_ARRAY = 9
 
string slot_names [SLOTS_ARRAY] = { "weaponBayonetAK", "weaponBayonet", "weaponBayonetMosin", "weaponBayonetSKS", "weaponMuzzleMosin", "weaponMuzzleMP5" }
 

Подробное описание

Методы

◆ CanPutAsAttachment() [1/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 if ( !parent.FindAttachmentBySlotName("weaponButtstockAK").IsKindOf("GrozaGL_LowerReceiver") )
7 {
8 return true;
9 }
10
11 return false;
12 }
Definition EntityAI.c:95

◆ CanPutAsAttachment() [2/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 if ( !parent.FindAttachmentBySlotName("weaponButtstockAK") || !parent.FindAttachmentBySlotName("weaponButtstockAK").IsKindOf("GrozaGL_LowerReceiver") )
7 {
8 return true;
9 }
10
11 return false;
12 }

◆ CanPutAsAttachment() [3/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 if ( !parent.FindAttachmentBySlotName("weaponButtstockAK").IsKindOf("GrozaGL_LowerReceiver") )
7 {
8 return true;
9 }
10
11 return false;
12 }

◆ CanPutAsAttachment() [4/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
10 {
11 bool cond_state = true;
12 if(!super.CanPutAsAttachment(parent)) {return false;}
13 for ( int i = 0; i < SLOTS_ARRAY ; i++ )
14 {
15 if ( parent.FindAttachmentBySlotName(slot_names[i]) != NULL )
16 {
17 cond_state = false;
18 break;
19 }
20 }
21
22 if ( cond_state && !parent.IsKindOf("PlateCarrierHolster") && !parent.IsKindOf("PlateCarrierComplete") && !parent.IsKindOf("CarrierHolsterSolo") && !parent.IsKindOf("ChestHolster") )
23 {
24 return true;
25 }
26 return false;
27 }
string slot_names[SLOTS_ARRAY]
Definition ImprovisedSuppressor.c:6
const int SLOTS_ARRAY
Definition ImprovisedSuppressor.c:4

◆ CanPutAsAttachment() [5/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 if ( parent.FindAttachmentBySlotName("suppressorImpro") == NULL && parent.FindAttachmentBySlotName("weaponBayonet") == NULL )
7 {
8 return true;
9 }
10 return false;
11 }

Поля

◆ slot_names

string slot_names[SLOTS_ARRAY] = { "weaponBayonetAK", "weaponBayonet", "weaponBayonetMosin", "weaponBayonetSKS", "weaponMuzzleMosin", "weaponMuzzleMP5" }
private
6{ /*"weaponMuzzleAK", */"weaponBayonetAK", "weaponBayonet", "weaponBayonetMosin", "weaponBayonetSKS",/* "weaponMuzzleM4",*/ "weaponMuzzleMosin", /*"pistolMuzzle",*/ "weaponMuzzleMP5" };

◆ SLOTS_ARRAY

const int SLOTS_ARRAY = 9
private

Объявления и описания членов классов находятся в файлах: