Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
svd.c
Go to the documentation of this file.
1
class
SVD_Base
: RifleBoltLock_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
SvdRecoil
(
this
);
6
}
7
8
override
bool
CanEnterIronsights
()
9
{
10
ItemOptics
optic = GetAttachedOptics();
11
if
(optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) ||
KashtanOptic
.Cast(optic) || KazuarOptic.Cast(optic))
12
return
true
;
13
return
super.CanEnterIronsights();
14
}
15
16
//Debug menu Spawn Ground Special
17
override
void
OnDebugSpawn
()
18
{
19
GameInventory
inventory = GetInventory();
20
21
inventory.
CreateInInventory
(
"PSO1Optic"
);
22
inventory.
CreateInInventory
(
"AK_Suppressor"
);
23
inventory.
CreateInInventory
(
"Battery9V"
);
24
25
SpawnAttachedMagazine(
"Mag_SVD_10Rnd"
);
26
}
27
};
28
class
SVD
extends
SVD_Base
{};
29
class
SVD_Wooden
extends
SVD_Base
{};
GameInventory
script counterpart to engine's class Inventory
Definition
inventory.c:81
GameInventory::CreateInInventory
EntityAI CreateInInventory(string type)
Definition
inventory.c:876
ItemOptics
Definition
itemoptics.c:2
KashtanOptic
Definition
optics.c:8
RecoilBase
Definition
recoilbase.c:2
SVD_Base
Definition
svd.c:2
SVD_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
svd.c:17
SVD_Base::CanEnterIronsights
override bool CanEnterIronsights()
Definition
svd.c:8
SVD_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
svd.c:3
SvdRecoil
Definition
svdrecoil.c:2
Games
Dayz
scripts
4_world
entities
firearms
rifle
svd.c
Generated by
1.17.0