DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
M79.c
Go to the documentation of this file.
2{
3 void M79_Base ()
4 {
5 }
6
7 override bool ShootsExplosiveAmmo()
8 {
9 return true;
10 }
11
13 {
14 return new M79Recoil(this);
15 }
16};
17
18class M79 extends M79_Base
19{
20 override void AssembleGun()
21 {
22 super.AssembleGun();
23
24 if ( !FindAttachmentBySlotName("weaponOpticsAug") )
25 {
26 GetInventory().CreateAttachment("M79DummyOptics");
27 }
28 }
29};
30
31class M79DummyOptics extends ItemOptics
32{
33 override bool CanPutAsAttachment( EntityAI parent )
34 {
35 return true;
36 }
37};
38
override bool CanPutAsAttachment(EntityAI parent)
Definition M79.c:33
Definition M79.c:19
override void AssembleGun()
Definition M79.c:20
override bool ShootsExplosiveAmmo()
Definition M79.c:7
override RecoilBase SpawnRecoilObject()
Definition M79.c:12