DayZ
1.24
Loading...
Searching...
No Matches
Mosin9130.c
Go to the documentation of this file.
1
5
class
Mosin9130_Base
extends
BoltActionRifle_InnerMagazine_Base
6
{
7
void
Mosin9130_Base
()
8
{
9
}
10
11
override
bool
CanEnterIronsights
()
12
{
13
ItemOptics
optic
= GetAttachedOptics();
14
if
(
optic
&&
PUScopeOptic
.Cast(
optic
))
15
return
true
;
16
return
super
.CanEnterIronsights();
17
}
18
};
19
20
21
class
Mosin9130
extends
Mosin9130_Base
22
{
23
override
RecoilBase
SpawnRecoilObject
()
24
{
25
return
new
MosinRecoil
(
this
);
26
}
27
28
29
//Debug menu Spawn Ground Special
30
override
void
OnDebugSpawn
()
31
{
32
super
.OnDebugSpawn();
33
GameInventory
inventory
= GetInventory();
34
35
inventory
.CreateInInventory(
"PUScopeOptic"
);
36
inventory
.CreateInInventory(
"Mosin_Compensator"
);
37
38
EntityAI
entity
;
39
if
(
Class
.
CastTo
(
entity
,
this
))
40
entity
.SpawnEntityOnGroundPos(
"Ammo_762x54"
,
entity
.GetPosition());
41
}
42
};
43
44
class
SawedoffMosin9130_Base
extends
Mosin9130_Base
45
{
46
override
RecoilBase
SpawnRecoilObject
()
47
{
48
return
new
MosinSawedOffRecoil
(
this
);
49
}
50
};
BoltActionRifle_InnerMagazine_Base
Definition
Mosin9130.c:6
BoltActionRifle_InnerMagazine_Base::CanEnterIronsights
override bool CanEnterIronsights()
Definition
Mosin9130.c:11
BoltActionRifle_InnerMagazine_Base::Mosin9130_Base
void Mosin9130_Base()
Definition
Mosin9130.c:7
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
EntityAI
Definition
Building.c:6
GameInventory
script counterpart to engine's class Inventory
Definition
Inventory.c:79
ItemOptics
Definition
ItemOptics.c:2
Mosin9130_Base
Definition
Mosin9130.c:22
Mosin9130_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
Mosin9130.c:23
Mosin9130_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
Mosin9130.c:30
Mosin9130
base for Mosin @NOTE name copies config base class
MosinRecoil
Definition
MosinRecoil.c:2
MosinSawedOffRecoil
Definition
MosinSawedOffRecoil.c:2
Param3
Definition
EntityAI.c:95
RecoilBase
Definition
RecoilBase.c:2
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
scripts
4_World
Entities
Firearms
Rifle
Mosin9130.c
Generated by
1.10.0