DayZ 1.24
Loading...
Searching...
No Matches
VSS.c
Go to the documentation of this file.
1class VSS_Base : RifleBoltFree_Base
2{
4 {
5 return new VSSRecoil(this);
6 }
7
8 override void OnDebugSpawn()
9 {
11 if (Class.CastTo(entity, this))
12 {
13 entity.GetInventory().CreateInInventory("PSO1Optic");
14 SpawnAttachedMagazine("Mag_Vikhr_30Rnd");
15 }
16 }
17};
18
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};
29class ASVAL : 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};
Definition VSS.c:29
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition VSS.c:2
override void OnDebugSpawn()
Definition VSS.c:8
override RecoilBase SpawnRecoilObject()
Definition VSS.c:3
Definition VSS.c:20
override bool CanEnterIronsights()
Definition VSS.c:21
Definition VSS.c:31
override bool CanEnterIronsights()
Definition VSS.c:32
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.