Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
attachments.c
Go to the documentation of this file.
1 class ButtstockBase extends Inventory_Base
2 {
3  override void OnWasAttached(EntityAI parent, int slot_id)
4  {
5  super.OnWasAttached(parent, slot_id);
6 
7  if( parent.IsWeapon() )
8  {
9  parent.SetButtstockAttached(true,slot_id);
10  }
11  }
12 
13  override void OnWasDetached(EntityAI parent, int slot_id)
14  {
15  super.OnWasDetached(parent, slot_id);
16 
17  if( parent.IsWeapon() )
18  {
19  parent.SetButtstockAttached(false);
20  }
21  }
22 };
23 
24 class AK74_WoodBttstck : ButtstockBase {};
25 class AKS74U_Bttstck : ButtstockBase {};
26 class AK_FoldingBttstck : ButtstockBase {};
27 class AK_PlasticBttstck : ButtstockBase {};
28 class AK_WoodBttstck : ButtstockBase {};
29 class Fal_FoldingBttstck : ButtstockBase {};
30 class Fal_OeBttstck : ButtstockBase {};
31 class GhillieAtt_ColorBase : ButtstockBase {};
32 class Groza_LowerReceiver : ButtstockBase {};
33 class M249_Bipod : ButtstockBase {};
34 class M4_CQBBttstck : ButtstockBase {};
35 class M4_MPBttstck : ButtstockBase {};
36 class M4_OEBttstck : ButtstockBase {};
37 class MP5k_StockBttstck : ButtstockBase {};
38 class Saiga_Bttstck : ButtstockBase {};
39 class PP19_Bttstck : ButtstockBase {};
M4_CQBBttstck
Definition: attachments.c:34
OnWasAttached
override void OnWasAttached(EntityAI parent, int slot_id)
Definition: torch.c:945
AK_PlasticBttstck
Definition: attachments.c:27
Saiga_Bttstck
Definition: attachments.c:38
GhillieAtt_ColorBase
Definition: attachments.c:31
M4_MPBttstck
Definition: attachments.c:35
AK_FoldingBttstck
Definition: attachments.c:26
AKS74U_Bttstck
Definition: attachments.c:25
AK_WoodBttstck
Definition: attachments.c:28
Groza_LowerReceiver
Definition: attachments.c:32
Fal_OeBttstck
Definition: attachments.c:30
OnWasDetached
override void OnWasDetached(EntityAI parent, int slot_id)
Definition: remotedetonator.c:237
Fal_FoldingBttstck
Definition: attachments.c:29
M4_OEBttstck
Definition: attachments.c:36
M249_Bipod
Definition: attachments.c:33
Inventory_Base
Definition: barbedbaseballbat.c:1
AK74_WoodBttstck
Definition: attachments.c:24
EntityAI
Definition: building.c:5
PP19_Bttstck
Definition: attachments.c:39
MP5k_StockBttstck
Definition: attachments.c:37