Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
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
};
CZ61_Base
basic CZ61 Skorpion submachine gun
Definition
cz61.c:5
CZ61_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
cz61.c:35
CZ61_Base::CZ61
void CZ61()
Definition
cz61.c:6
CZ61_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
cz61.c:11
CZ61_Base::GetWeaponSpecificCommand
override int GetWeaponSpecificCommand(int weaponAction, int subCommand)
Definition
cz61.c:17
Cz61Recoil
Definition
skorpionrecoil.c:2
GameInventory
script counterpart to engine's class Inventory
Definition
inventory.c:81
GameInventory::CreateInInventory
EntityAI CreateInInventory(string type)
Definition
inventory.c:876
RecoilBase
Definition
recoilbase.c:2
WeaponActionChamberingTypes
WeaponActionChamberingTypes
Definition
human.c:876
WeaponActions
WeaponActions
actions
Definition
human.c:816
Games
Dayz
scripts
4_world
entities
firearms
smg
cz61.c
Generated by
1.17.0