Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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) || 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 };
KashtanOptic
Definition: optics.c:7
RecoilBase
Definition: recoilbase.c:1
KazuarOptic
Definition: optics.c:14
SvdRecoil
Definition: svdrecoil.c:1
ItemOptics
Definition: itemoptics.c:1
SVD_Base
Definition: svd.c:1
GameInventory
script counterpart to engine's class Inventory
Definition: inventory.c:78