Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
pp19.c
Go to the documentation of this file.
1
4
class
PP19_Base
: RifleBoltFree_Base
5
{
6
void
PP19_Base
()
7
{
8
}
9
10
override
RecoilBase
SpawnRecoilObject
()
11
{
12
return
new
PP19Recoil
(
this
);
13
}
14
15
//some command is different for this weapon
16
override
int
GetWeaponSpecificCommand
(
int
weaponAction ,
int
subCommand)
17
{
18
if
( weaponAction ==
WeaponActions
.CHAMBERING)
19
{
20
switch
(subCommand)
21
{
22
case
WeaponActionChamberingTypes
.CHAMBERING_ONEBULLET_UNIQUE_CLOSED:
23
return
WeaponActionChamberingTypes
.CHAMBERING_ONEBULLET_OPENED;
24
25
default
:
26
return
subCommand;
27
}
28
29
}
30
return
subCommand;
31
}
32
33
override
bool
CanEnterIronsights
()
34
{
35
ItemOptics
optic = GetAttachedOptics();
36
if
(optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
37
return
true
;
38
return
super.CanEnterIronsights();
39
}
40
41
//Debug menu Spawn Ground Special
42
override
void
OnDebugSpawn
()
43
{
44
GameInventory
inventory = GetInventory();
45
inventory.
CreateInInventory
(
"PistolSuppressor"
);
46
inventory.
CreateInInventory
(
"PP19_Bttstck"
);
47
inventory.
CreateInInventory
(
"KobraOptic"
);
48
inventory.
CreateInInventory
(
"Battery9V"
);
49
50
SpawnAttachedMagazine(
"Mag_PP19_64Rnd"
);
51
}
52
};
GameInventory
script counterpart to engine's class Inventory
Definition
inventory.c:81
GameInventory::CreateInInventory
EntityAI CreateInInventory(string type)
Definition
inventory.c:876
ItemOptics
Definition
itemoptics.c:2
PP19_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
pp19.c:42
PP19_Base::CanEnterIronsights
override bool CanEnterIronsights()
Definition
pp19.c:33
PP19_Base::PP19_Base
void PP19_Base()
Definition
pp19.c:6
PP19_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
pp19.c:10
PP19_Base::GetWeaponSpecificCommand
override int GetWeaponSpecificCommand(int weaponAction, int subCommand)
Definition
pp19.c:16
PP19Recoil
Definition
pp19recoil.c:2
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
pp19.c
Generated by
1.17.0