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