Dayz Explorer
1.28.160049
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:79
GameInventory::CreateInInventory
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
Definition
inventory.c:874
ItemOptics
Definition
itemoptics.c:2
KashtanOptic
Definition
optics.c:8
RecoilBase
Definition
recoilbase.c:2
SVD_Base
Definition
svd.c:2
SvdRecoil
Definition
svdrecoil.c:2
Daten
4_world
entities
firearms
rifle
svd.c
Generated by
1.12.0