DayZ
1.24
Loading...
Searching...
No Matches
VSS.c
Go to the documentation of this file.
1
class
VSS_Base
: RifleBoltFree_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
VSSRecoil
(
this
);
6
}
7
8
override
void
OnDebugSpawn
()
9
{
10
EntityAI
entity
;
11
if
(
Class
.
CastTo
(
entity
,
this
))
12
{
13
entity
.GetInventory().CreateInInventory(
"PSO1Optic"
);
14
SpawnAttachedMagazine(
"Mag_Vikhr_30Rnd"
);
15
}
16
}
17
};
18
19
class
VSS
:
VSS_Base
20
{
21
override
bool
CanEnterIronsights
()
22
{
23
ItemOptics
optic
= GetAttachedOptics();
24
if
(
optic
&&
PSO1Optic
.Cast(
optic
) ||
PSO11Optic
.Cast(
optic
) ||
KazuarOptic
.Cast(
optic
))
25
return
true
;
26
return
super
.CanEnterIronsights();
27
}
28
};
29
class
ASVAL
:
VSS_Base
{};
30
class
Vikhr
:
VSS_Base
31
{
32
override
bool
CanEnterIronsights
()
33
{
34
ItemOptics
optic
= GetAttachedOptics();
35
if
(
optic
&&
PSO1Optic
.Cast(
optic
) ||
PSO11Optic
.Cast(
optic
) ||
KazuarOptic
.Cast(
optic
))
36
return
true
;
37
return
super
.CanEnterIronsights();
38
}
39
};
ASVAL
Definition
VSS.c:29
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
EntityAI
Definition
Building.c:6
ItemOptics
Definition
ItemOptics.c:2
KazuarOptic
Definition
Optics.c:15
Param3
Definition
EntityAI.c:95
RecoilBase
Definition
RecoilBase.c:2
VSS_Base
Definition
VSS.c:2
VSS_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
VSS.c:8
VSS_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
VSS.c:3
VSS
Definition
VSS.c:20
VSS::CanEnterIronsights
override bool CanEnterIronsights()
Definition
VSS.c:21
VSSRecoil
Definition
VSSRecoil.c:2
Vikhr
Definition
VSS.c:31
Vikhr::CanEnterIronsights
override bool CanEnterIronsights()
Definition
VSS.c:32
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
SMG
VSS.c
Generated by
1.10.0