DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Mosin9130.c
См. документацию.
6{
8 {
9 }
10
11 override bool CanEnterIronsights()
12 {
13 ItemOptics optic = GetAttachedOptics();
14 if (optic && PUScopeOptic.Cast(optic))
15 return true;
16 return super.CanEnterIronsights();
17 }
18};
19
20
22{
24 {
25 return new MosinRecoil(this);
26 }
27
28
29 //Debug menu Spawn Ground Special
30 override void OnDebugSpawn()
31 {
32 super.OnDebugSpawn();
33 GameInventory inventory = GetInventory();
34
35 inventory.CreateInInventory( "PUScopeOptic" );
36 inventory.CreateInInventory( "Mosin_Compensator" );
37
38 EntityAI entity;
39 if ( Class.CastTo(entity, this) )
40 {
41 entity.SpawnEntityOnGroundPos("Ammo_762x54", entity.GetPosition());
42 }
43 }
44};
45
46class SawedoffMosin9130_Base extends Mosin9130_Base
47{
49 {
50 return new MosinSawedOffRecoil(this);
51 }
52};
override bool CanEnterIronsights()
Определения Mosin9130.c:11
void Mosin9130_Base()
Определения Mosin9130.c:7
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения Building.c:6
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
Определения Inventory.c:874
script counterpart to engine's class Inventory
Определения Inventory.c:79
Определения ItemOptics.c:2
override RecoilBase SpawnRecoilObject()
Определения Mosin9130.c:23
override void OnDebugSpawn()
Определения Mosin9130.c:30
Определения Mosin9130.c:22
base for Mosin @NOTE name copies config base class
Определения MosinRecoil.c:2
Определения RecoilBase.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.