1234567891011121314151617181920212223242526272829303132333435363738 |
- class M79_Base extends RifleSingleShotManual_Base
- {
- void M79_Base ()
- {
- }
-
- override bool ShootsExplosiveAmmo()
- {
- return true;
- }
-
- override RecoilBase SpawnRecoilObject()
- {
- return new M79Recoil(this);
- }
- };
- class M79 extends M79_Base
- {
- override void AssembleGun()
- {
- super.AssembleGun();
-
- if ( !FindAttachmentBySlotName("weaponOpticsAug") )
- {
- GetInventory().CreateAttachment("M79DummyOptics");
- }
- }
- };
- class M79DummyOptics extends ItemOptics
- {
- override bool CanPutAsAttachment( EntityAI parent )
- {
- return true;
- }
- };
|