Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cz61.c
Go to the documentation of this file.
1 
4 class CZ61_Base : RifleBoltLock_Base
5 {
6  void CZ61()
7  {
8  }
9 
10 
11  override RecoilBase SpawnRecoilObject()
12  {
13  return new Cz61Recoil(this);
14  }
15 
16  //some command is different for this weapon
17  override int GetWeaponSpecificCommand(int weaponAction ,int subCommand)
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  }
33 
34  //Debug menu Spawn Ground Special
35  override void OnDebugSpawn()
36  {
37  GameInventory inventory = GetInventory();
38 
39  inventory.CreateInInventory( "PistolSuppressor" );
40 
41  SpawnAttachedMagazine("Mag_CZ61_20Rnd");
42  }
43 };
WeaponActions
WeaponActions
actions
Definition: human.c:808
RecoilBase
Definition: recoilbase.c:1
CZ61_Base
basic CZ61 Skorpion submachine gun
Definition: cz61.c:4
WeaponActionChamberingTypes
WeaponActionChamberingTypes
Definition: human.c:868
Cz61Recoil
Definition: skorpionrecoil.c:1
GameInventory
script counterpart to engine's class Inventory
Definition: inventory.c:78