Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
vss.c
Go to the documentation of this file.
1 class VSS_Base : RifleBoltFree_Base
2 {
3  override RecoilBase SpawnRecoilObject()
4  {
5  return new VSSRecoil(this);
6  }
7 
8  override void OnDebugSpawn()
9  {
10  EntityAI entity;
11  if ( Class.CastTo(entity, this) )
12  {
13  entity.GetInventory().CreateInInventory( "PSO1Optic" );
14  SpawnAttachedMagazine("Mag_Vikhr_30Rnd");
15  }
16  }
17 };
18 
19 class VSS : VSS_Base
20 {
21  override bool CanEnterIronsights()
22  {
23  ItemOptics optic = GetAttachedOptics();
24  if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || KazuarOptic.Cast(optic))
25  return true;
26  return super.CanEnterIronsights();
27  }
28 };
29 class ASVAL : VSS_Base {};
30 class Vikhr : VSS_Base
31 {
32  override bool CanEnterIronsights()
33  {
34  ItemOptics optic = GetAttachedOptics();
35  if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || KazuarOptic.Cast(optic))
36  return true;
37  return super.CanEnterIronsights();
38  }
39 };
VSSRecoil
Definition: vssrecoil.c:1
ASVAL
Definition: vss.c:29
RecoilBase
Definition: recoilbase.c:1
VSS_Base
Definition: vss.c:1
VSS
Definition: vss.c:19
KazuarOptic
Definition: optics.c:14
Vikhr
Definition: vss.c:30
ItemOptics
Definition: itemoptics.c:1
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
EntityAI
Definition: building.c:5