Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
pistolsuppressor.c
Go to the documentation of this file.
1
class
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
}
EntityAI
Definition
building.c:6
InventorySlots
provides access to slot configuration
Definition
inventoryslots.c:6
ItemSuppressor
Definition
mosin_compensator.c:2
CanPutAsAttachment
override bool CanPutAsAttachment(EntityAI parent)
Definition
itembase.c:8966
Daten
4_world
entities
itembase
suppressorbase
pistolsuppressor.c
Generated by
1.12.0