DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Aug_Base
+ Граф наследования:Aug_Base:

Закрытые члены

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

Подробное описание

Методы

◆ GetWeaponSpecificCommand()

override int GetWeaponSpecificCommand ( int weaponAction,
int subCommand )
inlineprivate
19 {
20 if ( weaponAction == WeaponActions.RELOAD)
21 {
22 switch (subCommand)
23 {
24 case WeaponActionReloadTypes.RELOADRIFLE_MAGAZINE_BULLET:
25 return WeaponActionReloadTypes.RELOADSRIFLE_MAGAZINE_BULLET;
26
27 case WeaponActionReloadTypes.RELOADRIFLE_NOMAGAZINE_BULLET:
28 return WeaponActionReloadTypes.RELOADSRIFLE_NOMAGAZINE_BULLET;
29
30 case WeaponActionReloadTypes.RELOADRIFLE_MAGAZINE_NOBULLET:
31 return WeaponActionReloadTypes.RELOADSRIFLE_MAGAZINE_NOBULLET;
32
33 case WeaponActionReloadTypes.RELOADRIFLE_NOMAGAZINE_NOBULLET:
34 return WeaponActionReloadTypes.RELOADSRIFLE_NOMAGAZINE_NOBULLET;
35
36 default:
37 return subCommand;
38 }
39
40 }
41 return subCommand;
42 }
Definition EntityAI.c:95
WeaponActions
actions
Definition human.c:816
WeaponActionReloadTypes
Definition human.c:832

◆ OnDebugSpawn() [1/2]

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

Перекрестные ссылки Class::CastTo().

◆ OnDebugSpawn() [2/2]

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

◆ SpawnRecoilObject()

override RecoilBase SpawnRecoilObject ( )
inlineprivate
4 {
5 return new AUGRecoil(this);
6 }
Definition AUGRecoil.c:2

Объявления и описания членов класса находятся в файле: