DayZ 1.24
Loading...
Searching...
No Matches
Aug_Base Class Reference
Inheritance diagram for Aug_Base:
[legend]
Collaboration diagram for Aug_Base:
[legend]

Private Member Functions

override RecoilBase SpawnRecoilObject ()
 
override void OnDebugSpawn ()
 
override int GetWeaponSpecificCommand (int weaponAction, int subCommand)
 
override void OnDebugSpawn ()
 

Detailed Description

Definition at line 1 of file AUG.c.

Member Function Documentation

◆ GetWeaponSpecificCommand()

override int Aug_Base::GetWeaponSpecificCommand ( int weaponAction,
int subCommand )
inlineprivate

Definition at line 16 of file AUG.c.

17 {
18 if (weaponAction == WeaponActions.RELOAD)
19 {
20 switch (subCommand)
21 {
22 case WeaponActionReloadTypes.RELOADRIFLE_MAGAZINE_BULLET:
23 return WeaponActionReloadTypes.RELOADSRIFLE_MAGAZINE_BULLET;
24
25 case WeaponActionReloadTypes.RELOADRIFLE_NOMAGAZINE_BULLET:
26 return WeaponActionReloadTypes.RELOADSRIFLE_NOMAGAZINE_BULLET;
27
28 case WeaponActionReloadTypes.RELOADRIFLE_MAGAZINE_NOBULLET:
29 return WeaponActionReloadTypes.RELOADSRIFLE_MAGAZINE_NOBULLET;
30
31 case WeaponActionReloadTypes.RELOADRIFLE_NOMAGAZINE_NOBULLET:
32 return WeaponActionReloadTypes.RELOADSRIFLE_NOMAGAZINE_NOBULLET;
33
34 default:
35 return subCommand;
36 }
37
38 }
39 return subCommand;
40 }
WeaponActions
actions
Definition human.c:796
WeaponActionReloadTypes
Definition human.c:812

◆ OnDebugSpawn() [1/2]

override void Aug_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 9 of file AUG.c.

10 {
12 if (Class.CastTo(entity, this))
13 entity.SpawnEntityOnGroundPos("Mag_Aug_30Rnd", entity.GetPosition());
14 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

◆ OnDebugSpawn() [2/2]

override void Aug_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 46 of file AUG.c.

47 {
48 GameInventory inventory = GetInventory();
49
50 inventory.CreateInInventory("UniversalLight");
51 inventory.CreateInInventory("Battery9V");
52 inventory.CreateInInventory("ACOGOptic");
53 inventory.CreateInInventory("M4_Suppressor");
54
55 SpawnAttachedMagazine("Mag_Aug_30Rnd");
56 }
script counterpart to engine's class Inventory
Definition Inventory.c:79

◆ SpawnRecoilObject()

override RecoilBase Aug_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 3 of file AUG.c.

4 {
5 return new AUGRecoil(this);
6 }

The documentation for this class was generated from the following file: