Dayz Explorer
1.29.162510
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
entity.GetInventory().CreateInInventory(
"Battery9V"
);
15
SpawnAttachedMagazine(
"Mag_Vikhr_30Rnd"
);
16
}
17
}
18
};
19
20
class
VSS
:
VSS_Base
21
{
22
override
bool
CanEnterIronsights
()
23
{
24
ItemOptics
optic = GetAttachedOptics();
25
if
(optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
26
return
true
;
27
return
super.CanEnterIronsights();
28
}
29
};
30
class
ASVAL
:
VSS_Base
{};
31
class
Vikhr
:
VSS_Base
32
{
33
override
bool
CanEnterIronsights
()
34
{
35
ItemOptics
optic = GetAttachedOptics();
36
if
(optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
37
return
true
;
38
return
super.CanEnterIronsights();
39
}
40
};
CanEnterIronsights
AugOptic CanEnterIronsights
Definition
aug.c:63
ASVAL
Definition
vss.c:30
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
EntityAI
Definition
inventoryitem.c:2
ItemOptics
Definition
itemoptics.c:2
RecoilBase
Definition
recoilbase.c:2
VSS_Base
Definition
vss.c:2
VSS
Definition
vss.c:21
VSSRecoil
Definition
vssrecoil.c:2
Vikhr
Definition
vss.c:32
OnDebugSpawn
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition
hatchback_02.c:414
Daten
4_world
entities
firearms
smg
vss.c
Generated by
1.16.1