Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
pistolsuppressor.c
Go to the documentation of this file.
1class PistolSuppressor extends ItemSuppressor
2{
3 override bool CanPutAsAttachment( EntityAI parent )
4 {
5 if (!super.CanPutAsAttachment(parent))
6 return false;
7
8 if (parent.IsSlotReserved(InventorySlots.GetSlotIdFromString("suppressorImpro")) || parent.IsSlotReserved(InventorySlots.GetSlotIdFromString("weaponMuzzleMP5")))
9 return false;
10
11 if ( parent.FindAttachmentBySlotName("suppressorImpro") == NULL && parent.FindAttachmentBySlotName("weaponMuzzleMP5") == NULL )
12 {
13 return true;
14 }
15 return false;
16 }
17}
provides access to slot configuration
override bool CanPutAsAttachment(EntityAI parent)
Definition itembase.c:8966