Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
b95.c
Go to the documentation of this file.
1
class
B95_base
:
DoubleBarrel_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
B95Recoil
(
this
);
6
}
7
8
9
//Debug menu Spawn Ground Special
10
override
void
OnDebugSpawn
()
11
{
12
//super.OnDebugSpawn();
13
SpawnAmmo(
"Ammo_308Win"
,SAMF_DEFAULT);
14
GameInventory
inventory = GetInventory();
15
16
inventory.
CreateInInventory
(
"HuntingOptic"
);
17
18
19
EntityAI
entity;
20
if
(
Class
.
CastTo
(entity,
this
) )
21
{
22
entity.SpawnEntityOnGroundPos(
"Ammo_308Win"
, entity.GetPosition());
23
}
24
}
25
26
};
27
class
B95
:
B95_base
{};
28
class
SawedoffB95
extends
B95_base
{};
B95_base
Definition
b95.c:2
B95_base::OnDebugSpawn
override void OnDebugSpawn()
Definition
b95.c:10
B95_base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
b95.c:3
B95
Definition
b95.c:27
B95Recoil
Definition
b95recoil.c:2
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
DoubleBarrel_Base
Definition
doublebarrel_base.c:120
EntityAI
Definition
inventoryitem.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
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Games
Dayz
scripts
4_world
entities
firearms
rifle
b95.c
Generated by
1.17.0