Dayz Explorer 1.28.160049
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
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};
basic CZ61 Skorpion submachine gun
Definition cz61.c:5
script counterpart to engine's class Inventory
Definition inventory.c:79
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
Definition inventory.c:874