DayZ 1.24
Loading...
Searching...
No Matches
SuppressorBase Class Reference
Collaboration diagram for SuppressorBase:
[legend]

Private Member Functions

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)
 

Private Attributes

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

Detailed Description

Definition at line 1 of file Groza_Barrel_Grip.c.

Member Function Documentation

◆ CanPutAsAttachment() [1/5]

override bool SuppressorBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 3 of file Groza_Barrel_Grip.c.

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

◆ CanPutAsAttachment() [2/5]

override bool SuppressorBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 3 of file Groza_Barrel_Short.c.

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

◆ CanPutAsAttachment() [3/5]

override bool SuppressorBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 3 of file Groza_Barrel_Suppressor.c.

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

◆ CanPutAsAttachment() [4/5]

override bool SuppressorBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 9 of file ImprovisedSuppressor.c.

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 return true;
24 return false;
25 }
string slot_names[SLOTS_ARRAY]

◆ CanPutAsAttachment() [5/5]

override bool SuppressorBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 3 of file M4_Suppressor.c.

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

Member Data Documentation

◆ slot_names

string SuppressorBase::slot_names[SLOTS_ARRAY] = { "weaponBayonetAK", "weaponBayonet", "weaponBayonetMosin", "weaponBayonetSKS", "weaponMuzzleMosin", "weaponMuzzleMP5" }
private

Definition at line 6 of file ImprovisedSuppressor.c.

6{ /*"weaponMuzzleAK", */"weaponBayonetAK", "weaponBayonet", "weaponBayonetMosin", "weaponBayonetSKS",/* "weaponMuzzleM4",*/ "weaponMuzzleMosin", /*"pistolMuzzle",*/ "weaponMuzzleMP5" };

◆ SLOTS_ARRAY

const int SuppressorBase::SLOTS_ARRAY = 9
private

Definition at line 4 of file ImprovisedSuppressor.c.


The documentation for this class was generated from the following files: