DayZ 1.24
Loading...
Searching...
No Matches
PP19_Base Class Reference

basic PP19 submachine gun More...

Inheritance diagram for PP19_Base:
[legend]
Collaboration diagram for PP19_Base:
[legend]

Private Member Functions

void PP19_Base ()
 
override RecoilBase SpawnRecoilObject ()
 
override int GetWeaponSpecificCommand (int weaponAction, int subCommand)
 
override bool CanEnterIronsights ()
 
override void OnDebugSpawn ()
 

Detailed Description

basic PP19 submachine gun

Definition at line 4 of file PP19.c.

Constructor & Destructor Documentation

◆ PP19_Base()

void PP19_Base::PP19_Base ( )
inlineprivate

Definition at line 6 of file PP19.c.

7 {
8 }

Member Function Documentation

◆ CanEnterIronsights()

override bool PP19_Base::CanEnterIronsights ( )
inlineprivate

Definition at line 33 of file PP19.c.

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

◆ GetWeaponSpecificCommand()

override int PP19_Base::GetWeaponSpecificCommand ( int weaponAction,
int subCommand )
inlineprivate

Definition at line 16 of file PP19.c.

17 {
18 if (weaponAction == WeaponActions.CHAMBERING)
19 {
20 switch (subCommand)
21 {
22 case WeaponActionChamberingTypes.CHAMBERING_ONEBULLET_UNIQUE_CLOSED:
23 return WeaponActionChamberingTypes.CHAMBERING_ONEBULLET_OPENED;
24
25 default:
26 return subCommand;
27 }
28
29 }
30 return subCommand;
31 }
WeaponActionChamberingTypes
Definition human.c:856
WeaponActions
actions
Definition human.c:796

◆ OnDebugSpawn()

override void PP19_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 42 of file PP19.c.

43 {
44 GameInventory inventory = GetInventory();
45 inventory.CreateInInventory("PistolSuppressor");
46 inventory.CreateInInventory("PP19_Bttstck");
47 inventory.CreateInInventory("KobraOptic");
48 inventory.CreateInInventory("Battery9V");
49
50 SpawnAttachedMagazine("Mag_PP19_64Rnd");
51 }
script counterpart to engine's class Inventory
Definition Inventory.c:79

◆ SpawnRecoilObject()

override RecoilBase PP19_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 10 of file PP19.c.

11 {
12 return new PP19Recoil(this);
13 }

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