DayZ 1.24
Loading...
Searching...
No Matches
AKM_Base Class Reference
Inheritance diagram for AKM_Base:
[legend]
Collaboration diagram for AKM_Base:
[legend]

Private Member Functions

override RecoilBase SpawnRecoilObject ()
 
override bool CanEnterIronsights ()
 
override void OnDebugSpawn ()
 

Detailed Description

Definition at line 1 of file AKM.c.

Member Function Documentation

◆ CanEnterIronsights()

override bool AKM_Base::CanEnterIronsights ( )
inlineprivate

Definition at line 34 of file AKM.c.

35 {
36 ItemOptics optic = GetAttachedOptics();
37 if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || KazuarOptic.Cast(optic))
38 return true;
39 return super.CanEnterIronsights();
40 }

◆ OnDebugSpawn()

override void AKM_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 43 of file AKM.c.

44 {
45 GameInventory inventory = GetInventory();
46
47 inventory.CreateInInventory("AK_WoodBttstck");
48 inventory.CreateInInventory("AK_RailHndgrd");
49 inventory.CreateInInventory("AK_Bayonet");
50 inventory.CreateInInventory("UniversalLight");
51 inventory.CreateInInventory("KobraOptic");
52 inventory.CreateInInventory("Battery9V");
53 inventory.CreateInInventory("Battery9V");
54
55 // Calling super for this one will just pick the 300 round mag
56 SpawnAttachedMagazine("Mag_AKM_Drum75Rnd");
57 }
script counterpart to engine's class Inventory
Definition Inventory.c:79

◆ SpawnRecoilObject()

override RecoilBase AKM_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 3 of file AKM.c.

4 {
5 return new AkmRecoil(this);
6 }

The documentation for this class was generated from the following file: