DayZ 1.24
Loading...
Searching...
No Matches
AK74.c
Go to the documentation of this file.
2{
4 {
5 return new Ak74Recoil(this);
6 }
7
8
9 //Debug menu Spawn Ground Special
10 override void OnDebugSpawn()
11 {
12 GameInventory inventory = GetInventory();
13
14 inventory.CreateInInventory("AK74_WoodBttstck");
15 inventory.CreateInInventory("AK74_Hndgrd");
16 inventory.CreateInInventory("PSO1Optic");
17 inventory.CreateInInventory("AK_Bayonet");
18 inventory.CreateInInventory("Battery9V");
19
20 SpawnAttachedMagazine("Mag_AK74_30Rnd");
21 }
22};
23
25{
26 override bool CanEnterIronsights()
27 {
28 ItemOptics optic = GetAttachedOptics();
29 if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || KazuarOptic.Cast(optic))
30 return true;
31 return super.CanEnterIronsights();
32 }
33};
override RecoilBase SpawnRecoilObject()
Definition AK74.c:3
override void OnDebugSpawn()
Definition AK74.c:10
Definition AK74.c:25
override bool CanEnterIronsights()
Definition AK74.c:26
Definition AKM.c:2
script counterpart to engine's class Inventory
Definition Inventory.c:79