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

basic CZ61 Skorpion submachine gun More...

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

Private Member Functions

void CZ61 ()
 
override RecoilBase SpawnRecoilObject ()
 
override int GetWeaponSpecificCommand (int weaponAction, int subCommand)
 
override void OnDebugSpawn ()
 

Detailed Description

basic CZ61 Skorpion submachine gun

Definition at line 4 of file CZ61.c.

Member Function Documentation

◆ CZ61()

void CZ61_Base::CZ61 ( )
inlineprivate

Definition at line 6 of file CZ61.c.

7 {
8 }

◆ GetWeaponSpecificCommand()

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

Definition at line 17 of file CZ61.c.

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

◆ OnDebugSpawn()

override void CZ61_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 35 of file CZ61.c.

36 {
37 GameInventory inventory = GetInventory();
38
39 inventory.CreateInInventory("PistolSuppressor");
40
41 SpawnAttachedMagazine("Mag_CZ61_20Rnd");
42 }
script counterpart to engine's class Inventory
Definition Inventory.c:79

◆ SpawnRecoilObject()

override RecoilBase CZ61_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 11 of file CZ61.c.

12 {
13 return new Cz61Recoil(this);
14 }

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