DayZ 1.24
Loading...
Searching...
No Matches
AtlasBipod.c
Go to the documentation of this file.
1class AtlasBipod extends Inventory_Base
2{
3 override bool CanPutAsAttachment(EntityAI parent)
4 {
5 if (!super.CanPutAsAttachment(parent)) return false;
6 bool m4_hndgrd = false;
7 bool ak_hndgrd = false;
8
9 if (parent.FindAttachmentBySlotName("weaponHandguardM4") != NULL)
10 m4_hndgrd = parent.FindAttachmentBySlotName("weaponHandguardM4").IsKindOf("M4_RISHndgrd");
11
12 if (parent.FindAttachmentBySlotName("weaponHandguardAK") != NULL)
13 ak_hndgrd = parent.FindAttachmentBySlotName("weaponHandguardAK").IsKindOf("AK_RailHndgrd");
14
15 if (m4_hndgrd || ak_hndgrd)
16 return true;
17
18 return false;
19 }
20
22 {
23 return false;
24 }
25}
override bool CanDetachAttachment(EntityAI attachment)
Definition AtlasBipod.c:21
override bool CanPutAsAttachment(EntityAI parent)
Definition AtlasBipod.c:3