Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
mp5_compensator.c
Go to the documentation of this file.
1class MP5_Compensator 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("pistolMuzzle")))
9 return false;
10
11 if ( !parent.FindAttachmentBySlotName("pistolMuzzle") )
12 {
13 return true;
14 }
15 return false;
16 }
17}
provides access to slot configuration
override bool CanPutAsAttachment(EntityAI parent)
Definition itembase.c:8966