DayZ 1.24
Loading...
Searching...
No Matches
SVD_Base Class Reference
Inheritance diagram for SVD_Base:
[legend]
Collaboration diagram for SVD_Base:
[legend]

Private Member Functions

override RecoilBase SpawnRecoilObject ()
 
override bool CanEnterIronsights ()
 
override void OnDebugSpawn ()
 

Detailed Description

Definition at line 1 of file SVD.c.

Member Function Documentation

◆ CanEnterIronsights()

override bool SVD_Base::CanEnterIronsights ( )
inlineprivate

Definition at line 8 of file SVD.c.

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 }

◆ OnDebugSpawn()

override void SVD_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 17 of file SVD.c.

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 }
script counterpart to engine's class Inventory
Definition Inventory.c:79

◆ SpawnRecoilObject()

override RecoilBase SVD_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 3 of file SVD.c.

4 {
5 return new SvdRecoil(this);
6 }

The documentation for this class was generated from the following file: