Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
m14.c
Go to the documentation of this file.
1 class M14_Base : RifleBoltLock_Base
2 {
3  override RecoilBase SpawnRecoilObject()
4  {
5  return new M14Recoil(this);
6  }
7 
8  override void OnDebugSpawn()
9  {
10  GameInventory inventory = GetInventory();
11 
12  inventory.CreateInInventory( "ReflexOptic" );
13  inventory.CreateInInventory( "ImprovisedSuppressor" );
14  inventory.CreateInInventory( "Battery9V" );
15 
16  SpawnAttachedMagazine("Mag_M14_20Rnd");
17  }
18 };
RecoilBase
Definition: recoilbase.c:1
M14_Base
Definition: m14.c:1
GameInventory
script counterpart to engine's class Inventory
Definition: inventory.c:78
M14Recoil
Definition: m14recoil.c:1