DayZ 1.24
Loading...
Searching...
No Matches
CZ61.c
Go to the documentation of this file.
1
4class CZ61_Base : RifleBoltLock_Base
5{
6 void CZ61()
7 {
8 }
9
10
12 {
13 return new Cz61Recoil(this);
14 }
15
16 //some command is different for this weapon
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};
basic CZ61 Skorpion submachine gun
Definition CZ61.c:5
void CZ61()
Definition CZ61.c:6
override RecoilBase SpawnRecoilObject()
Definition CZ61.c:11
override int GetWeaponSpecificCommand(int weaponAction, int subCommand)
Definition CZ61.c:17
override void OnDebugSpawn()
Definition CZ61.c:35
script counterpart to engine's class Inventory
Definition Inventory.c:79
WeaponActionChamberingTypes
Definition human.c:856
WeaponActions
actions
Definition human.c:796