ssg82.c 588 B

12345678910111213141516171819202122232425262728293031323334353637
  1. class SSG82_Base : BoltActionRifle_ExternalMagazine_Base
  2. {
  3. override bool CanEnterIronsights()
  4. {
  5. return false;
  6. }
  7. override void AssembleGun()
  8. {
  9. super.AssembleGun();
  10. if ( !FindAttachmentBySlotName("weaponOpticsAug") )
  11. {
  12. GetInventory().CreateAttachment("SSG82Optic");
  13. }
  14. }
  15. override RecoilBase SpawnRecoilObject()
  16. {
  17. return new SSG82Recoil(this);
  18. }
  19. //Debug menu Spawn Ground Special
  20. /*override void OnDebugSpawn()
  21. {
  22. super.OnDebugSpawn();
  23. }*/
  24. };
  25. class SSG82Optic: ItemOptics
  26. {
  27. override bool CanPutAsAttachment( EntityAI parent )
  28. {
  29. return true;
  30. }
  31. };