Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
svd.c
Go to the documentation of this file.
1class 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) || PSO6Optic.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};
28class SVD extends SVD_Base {};
29class SVD_Wooden extends SVD_Base {};
script counterpart to engine's class Inventory
Definition inventory.c:79
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
Definition inventory.c:874
Definition svd.c:2