Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
ak101.c
Go to the documentation of this file.
1
class
AK101_Base
:
AKM_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
Ak101Recoil
(
this
);
6
}
7
8
//Debug menu Spawn Ground Special
9
override
void
OnDebugSpawn
()
10
{
11
GameInventory
inventory = GetInventory();
12
13
inventory.
CreateInInventory
(
"AK_Bayonet"
);
14
inventory.
CreateInInventory
(
"AK_PlasticBttstck"
);
15
inventory.
CreateInInventory
(
"AK_RailHndgrd"
);
16
inventory.
CreateInInventory
(
"PSO1Optic"
);
17
inventory.
CreateInInventory
(
"UniversalLight"
);
18
inventory.
CreateInInventory
(
"Battery9V"
);
19
inventory.
CreateInInventory
(
"Battery9V"
);
20
21
SpawnAttachedMagazine(
"Mag_AK101_30Rnd"
);
22
}
23
};
24
25
class
AK101
:
AK101_Base
26
{
27
override
bool
CanEnterIronsights
()
28
{
29
ItemOptics
optic = GetAttachedOptics();
30
if
(optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
31
return
true
;
32
return
super.CanEnterIronsights();
33
}
34
};
AK101_Base
Definition
ak101.c:2
AK101_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
ak101.c:9
AK101_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
ak101.c:3
AK101
Definition
ak101.c:26
AK101::CanEnterIronsights
override bool CanEnterIronsights()
Definition
ak101.c:27
AKM_Base
Definition
akm.c:2
Ak101Recoil
Definition
ak101recoil.c:2
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
RecoilBase
Definition
recoilbase.c:2
Games
Dayz
scripts
4_world
entities
firearms
automaticrifle
ak101.c
Generated by
1.17.0