DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
AtlasBipod.c
См. документацию.
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 {
11 m4_hndgrd = parent.FindAttachmentBySlotName("weaponHandguardM4").IsKindOf("M4_RISHndgrd");
12 }
13
14 if ( parent.FindAttachmentBySlotName("weaponHandguardAK") != NULL )
15 {
16 ak_hndgrd = parent.FindAttachmentBySlotName("weaponHandguardAK").IsKindOf("AK_RailHndgrd");
17 }
18
19 if ( m4_hndgrd || ak_hndgrd )
20 {
21 return true;
22 }
23
24 return false;
25 }
26
27 override bool CanDetachAttachment( EntityAI parent )
28 {
29 return false;
30 }
31}
Определения Building.c:6
override bool CanDetachAttachment(EntityAI parent)
Определения AtlasBipod.c:27
override bool CanPutAsAttachment(EntityAI parent)
Определения AtlasBipod.c:3