DayZ 1.24
Loading...
Searching...
No Matches
SVD.c
Go to the documentation of this file.
1class SVD_Base : RifleBoltLock_Base
2{
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) || 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};
script counterpart to engine's class Inventory
Definition Inventory.c:79
Definition SVD.c:2
override bool CanEnterIronsights()
Definition SVD.c:8
override void OnDebugSpawn()
Definition SVD.c:17
override RecoilBase SpawnRecoilObject()
Definition SVD.c:3