Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
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
SpawnAmmo(
"Ammo_308Win"
,SAMF_DEFAULT);
13
14
EntityAI
entity;
15
if
(
Class
.
CastTo
(entity,
this
) )
16
{
17
entity.GetInventory().CreateInInventory(
"HuntingOptic"
);
18
entity.SpawnEntityOnGroundPos(
"Ammo_308Win"
, entity.GetPosition());
19
}
20
}
21
};
BoltActionRifle_InnerMagazine_Base
Definition
mosin9130.c:6
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
EntityAI
Definition
inventoryitem.c:2
RecoilBase
Definition
recoilbase.c:2
Winchester70_Base
Definition
winchester70.c:2
Winchester70_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
winchester70.c:10
Winchester70_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
winchester70.c:3
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.
Games
Dayz
scripts
4_world
entities
firearms
rifle
winchester70.c
Generated by
1.17.0