Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
vss.c
Go to the documentation of this file.
1class 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 entity.GetInventory().CreateInInventory( "Battery9V" );
15 SpawnAttachedMagazine("Mag_Vikhr_30Rnd");
16 }
17 }
18};
19
21{
22 override bool CanEnterIronsights()
23 {
24 ItemOptics optic = GetAttachedOptics();
25 if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
26 return true;
27 return super.CanEnterIronsights();
28 }
29};
30class ASVAL : VSS_Base {};
32{
33 override bool CanEnterIronsights()
34 {
35 ItemOptics optic = GetAttachedOptics();
36 if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
37 return true;
38 return super.CanEnterIronsights();
39 }
40};
AugOptic CanEnterIronsights
Definition aug.c:63
Definition vss.c:30
Super root of all classes in Enforce script.
Definition enscript.c:11
Definition vss.c:2
Definition vss.c:21
Definition vss.c:32
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn