DayZ
1.24
Loading...
Searching...
No Matches
Winchester70.c
Go to the documentation of this file.
1
class
Winchester70_Base
:
BoltActionRifle_InnerMagazine_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
Winchester70Recoil
(
this
);
6
}
7
8
9
//Debug menu Spawn Ground Special
10
override
void
OnDebugSpawn
()
11
{
12
super
.OnDebugSpawn();
13
EntityAI
entity
;
14
if
(
Class
.
CastTo
(
entity
,
this
))
15
{
16
entity
.GetInventory().CreateInInventory(
"HuntingOptic"
);
17
entity
.SpawnEntityOnGroundPos(
"Ammo_308Win"
,
entity
.GetPosition());
18
}
19
}
20
};
BoltActionRifle_InnerMagazine_Base
Definition
Mosin9130.c:6
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
EntityAI
Definition
Building.c:6
Param3
Definition
EntityAI.c:95
RecoilBase
Definition
RecoilBase.c:2
Winchester70_Base
Definition
Winchester70.c:2
Winchester70_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
Winchester70.c:3
Winchester70_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
Winchester70.c:10
Winchester70Recoil
Definition
Winchester70Recoil.c:2
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
scripts
4_World
Entities
Firearms
Rifle
Winchester70.c
Generated by
1.10.0