DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс PP19_Base

basic PP19 submachine gun Подробнее...

+ Граф наследования:PP19_Base:

Закрытые члены

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

Подробное описание

basic PP19 submachine gun

Конструктор(ы)

◆ PP19_Base()

void PP19_Base ( )
inlineprivate
7 {
8 }

Методы

◆ CanEnterIronsights()

override bool CanEnterIronsights ( )
inlineprivate
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 }
Definition ItemOptics.c:2
Definition Optics.c:15
Definition EntityAI.c:95

◆ GetWeaponSpecificCommand()

override int GetWeaponSpecificCommand ( int weaponAction,
int subCommand )
inlineprivate
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:876
WeaponActions
actions
Definition human.c:816

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprivate
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 SpawnRecoilObject ( )
inlineprivate
11 {
12 return new PP19Recoil(this);
13 }
Definition PP19Recoil.c:2

Объявления и описания членов класса находятся в файле: