DayZ
1.24
Loading...
Searching...
No Matches
M79.c
Go to the documentation of this file.
1
class
M79_Base
extends
RifleSingleShotManual_Base
2
{
3
void
M79_Base
()
4
{
5
}
6
7
override
bool
ShootsExplosiveAmmo
()
8
{
9
return
true
;
10
}
11
12
override
RecoilBase
SpawnRecoilObject
()
13
{
14
return
new
M79Recoil
(
this
);
15
}
16
};
17
18
class
M79
extends
M79_Base
19
{
20
override
void
AssembleGun
()
21
{
22
super
.AssembleGun();
23
24
if
(!FindAttachmentBySlotName(
"weaponOpticsAug"
))
25
GetInventory().CreateAttachment(
"M79DummyOptics"
);
26
}
27
};
28
29
class
M79DummyOptics
extends
ItemOptics
30
{
31
override
bool
CanPutAsAttachment
(
EntityAI
parent)
32
{
33
return
true
;
34
}
35
};
36
EntityAI
Definition
Building.c:6
ItemOptics
Definition
ItemOptics.c:2
ItemOptics::CanPutAsAttachment
override bool CanPutAsAttachment(EntityAI parent)
Definition
M79.c:31
M79_Base
Definition
M79.c:19
M79_Base::AssembleGun
override void AssembleGun()
Definition
M79.c:20
M79Recoil
Definition
M79Recoil.c:2
Param3
Definition
EntityAI.c:95
RecoilBase
Definition
RecoilBase.c:2
RifleSingleShotManual_Base
Definition
M79.c:2
RifleSingleShotManual_Base::M79_Base
void M79_Base()
Definition
M79.c:3
RifleSingleShotManual_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
M79.c:12
RifleSingleShotManual_Base::ShootsExplosiveAmmo
override bool ShootsExplosiveAmmo()
Definition
M79.c:7
scripts
4_World
Entities
Firearms
Launcher
M79.c
Generated by
1.10.0