DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Weapon_Base()

void Weapon::Weapon_Base ( )
inlineprivate

См. определение в файле Weapon_Base.c строка 78

79 {
80 //m_DmgPerShot = ConfigGetFloat("damagePerShot");
81 m_BayonetAttached = false;
82 m_ButtstockAttached = false;
83 m_WasIronSight = true; // initially uses ironsights by default
86 m_BurstCount = 0;
87 m_DOFProperties = new array<float>;
88 if (GetGame().IsClient())
89 {
90 m_DelayedValidationTimer = new Timer();
91 }
92
93 if ( ConfigIsExisting("simpleHiddenSelections") )
94 {
95 TStringArray selectionNames = new TStringArray;
96 ConfigGetTextArray("simpleHiddenSelections",selectionNames);
97 m_weaponHideBarrelIdx = selectionNames.Find("hide_barrel");
98 m_magazineSimpleSelectionIndex = selectionNames.Find("magazine");
99
100 int bulletIndex = selectionNames.Find("bullet");
101 if ( bulletIndex != -1 )
102 {
103 m_bulletSelectionIndex.Insert(bulletIndex);
104
105 for (int i = 2; i < 100; i++)
106 {
107 bulletIndex = selectionNames.Find(string.Format("bullet%1",i));
108 if (bulletIndex != -1)
109 {
110 m_bulletSelectionIndex.Insert(bulletIndex);
111 }
112 else
113 {
114 break;
115 }
116 }
117 }
118 }
119
124 if (GetGame().IsServer())
125 {
127 }
129 }
bool m_ButtstockAttached
Определения Weapon_Base.c:53
int m_BurstCount
Определения Weapon_Base.c:57
ref array< int > m_bulletSelectionIndex
Определения Weapon_Base.c:69
ref Timer m_DelayedValidationTimer
Определения Weapon_Base.c:75
int m_weaponHideBarrelIdx
Определения Weapon_Base.c:62
bool InitWeaponLiftCheckVerticalOffset()
gets weapon vertical offset from config for weaponlift raycast
Определения Weapon_Base.c:1293
int m_BayonetAttachmentIdx
Определения Weapon_Base.c:58
ref array< float > m_DOFProperties
Определения Weapon_Base.c:70
bool InitShoulderDistance()
gets approximate weapon distance from shoulder from config
Определения Weapon_Base.c:1305
bool InitDOFProperties(out array< float > temp_array)
Initializes DOF properties for weapon's ironsight/optics cameras.
Определения Weapon_Base.c:1260
int m_magazineSimpleSelectionIndex
animation state the weapon is in, -1 == uninitialized
Определения Weapon_Base.c:61
bool m_BayonetAttached
Определения Weapon_Base.c:52
ref array< float > m_ChanceToJam
Определения Weapon_Base.c:71
void InitStateMachine()
Определения Weapon_Base.c:131
int m_ButtstockAttachmentIdx
Определения Weapon_Base.c:59
bool m_WasIronSight
Определения Weapon_Base.c:56
bool InitReliability(out array< float > reliability_array)
Определения Weapon_Base.c:1270
bool InitWeaponLength()
gets weapon length from config for weaponlift raycast
Определения Weapon_Base.c:1281
proto native CGame GetGame()
array< string > TStringArray
Определения EnScript.c:685

Перекрестные ссылки GetGame(), InitDOFProperties(), InitReliability(), InitShoulderDistance(), Weapon_Base::InitStateMachine(), InitWeaponLength(), InitWeaponLiftCheckVerticalOffset(), m_BayonetAttached, m_BayonetAttachmentIdx, m_bulletSelectionIndex, m_BurstCount, m_ButtstockAttached, m_ButtstockAttachmentIdx, m_ChanceToJam, m_DelayedValidationTimer, m_DOFProperties, m_magazineSimpleSelectionIndex, m_WasIronSight и m_weaponHideBarrelIdx.

Используется в CopyWeaponStateFrom() и CreateWeaponWithAmmo().