Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
remington12.c
Go to the documentation of this file.
1
class
R12_Base
: ChamberFirst_InnerMagazine_SemiAutomatic_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
R12Recoil
(
this
);
6
}
7
8
//Debug menu Spawn Ground Special
9
override
void
OnDebugSpawn
()
10
{
11
//super.OnDebugSpawn();
12
SpawnAmmo(
"Ammo_12gaPellets"
,SAMF_DEFAULT);
13
GameInventory
inventory = GetInventory();
14
inventory.
CreateInInventory
(
"UniversalLight"
);
15
inventory.
CreateInInventory
(
"Battery9V"
);
16
inventory.
CreateInInventory
(
"ReflexOptic"
);
17
inventory.
CreateInInventory
(
"Battery9V"
);
18
19
EntityAI
entity;
20
if
(
Class
.
CastTo
(entity,
this
) )
21
{
22
entity.SpawnEntityOnGroundPos(
"Ammo_12gaPellets"
, entity.GetPosition());
23
}
24
}
25
}
26
class
R12 :
R12_Base
27
{
28
};
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
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
R12_Base
Definition
remington12.c:2
R12_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
remington12.c:9
R12_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
remington12.c:3
R12Recoil
Definition
r12recoil.c:2
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
shotgun
remington12.c
Generated by
1.17.0