5 if(!super.CanPutAsAttachment(parent)) {
return false;}
6 bool m4_hndgrd =
false;
7 bool ak_hndgrd =
false;
9 if ( parent.FindAttachmentBySlotName(
"weaponHandguardM4") != NULL )
11 m4_hndgrd = parent.FindAttachmentBySlotName(
"weaponHandguardM4").IsKindOf(
"M4_RISHndgrd");
14 if ( parent.FindAttachmentBySlotName(
"weaponHandguardAK") != NULL )
16 ak_hndgrd = parent.FindAttachmentBySlotName(
"weaponHandguardAK").IsKindOf(
"AK_RailHndgrd");
19 if ( m4_hndgrd || ak_hndgrd )
27 override bool CanDetachAttachment(
EntityAI attachment )