makarovpbsuppressor.c 337 B

123456789101112
  1. class MakarovPBSuppressor extends ItemSuppressor
  2. {
  3. override bool CanPutAsAttachment( EntityAI parent )
  4. {
  5. if(!super.CanPutAsAttachment(parent)) {return false;}
  6. if ( parent.FindAttachmentBySlotName("suppressorImpro") == NULL && parent.FindAttachmentBySlotName("weaponMuzzleMP5") == NULL )
  7. {
  8. return true;
  9. }
  10. return false;
  11. }
  12. }