Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
longhorn.c
Go to the documentation of this file.
1
class
LongHorn_Base
:
SingleShotPistol_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
LongHornRecoil
(
this
);
6
}
7
8
//Debug menu Spawn Ground Special
9
override
void
OnDebugSpawn
()
10
{
11
SpawnAmmo(
"Ammo_308Win"
,SAMF_DEFAULT);
12
13
GetInventory().CreateInInventory(
"PistolOptic"
);
14
15
EntityAI
entity;
16
if
(
Class
.
CastTo
(entity,
this
) )
17
{
18
entity.SpawnEntityOnGroundPos(
"Ammo_308Win"
, entity.GetPosition());
19
}
20
}
21
};
22
23
class
LongHorn
:
LongHorn_Base
{};
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
EntityAI
Definition
inventoryitem.c:2
LongHorn_Base
Definition
longhorn.c:2
LongHorn_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
longhorn.c:9
LongHorn_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
longhorn.c:3
LongHorn
Definition
longhorn.c:23
LongHornRecoil
Definition
longhornrecoil.c:2
RecoilBase
Definition
recoilbase.c:2
SingleShotPistol_Base
Definition
singleshotpistol_base.c:53
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
pistol
longhorn.c
Generated by
1.17.0