Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
m4_suppressor.c
Go to the documentation of this file.
1class M4_Suppressor extends SuppressorBase
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("weaponBayonet")))
9 return false;
10
11 if ( parent.FindAttachmentBySlotName("suppressorImpro") == NULL && parent.FindAttachmentBySlotName("weaponBayonet") == 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