Dayz Explorer
1.28.160049
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
{
26
GetInventory().CreateAttachment(
"M79DummyOptics"
);
27
}
28
}
29
};
30
31
class
M79DummyOptics
extends
ItemOptics
32
{
33
override
bool
CanPutAsAttachment
(
EntityAI
parent )
34
{
35
return
true
;
36
}
37
};
38
ShootsExplosiveAmmo
override bool ShootsExplosiveAmmo()
Definition
ammunitionpiles.c:219
AssembleGun
override void AssembleGun()
Definition
aug.c:68
EntityAI
Definition
building.c:6
ItemOptics
Definition
itemoptics.c:2
M79_Base
Definition
m79.c:19
M79Recoil
Definition
m79recoil.c:2
RecoilBase
Definition
recoilbase.c:2
RifleSingleShotManual_Base
Definition
m79.c:2
CanPutAsAttachment
override bool CanPutAsAttachment(EntityAI parent)
Definition
itembase.c:8966
Daten
4_world
entities
firearms
launcher
m79.c
Generated by
1.12.0