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

◆ Weapon_Base()

void Weapon::Weapon_Base ( )
inlineprivate

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

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

Перекрестные ссылки GetGame(), InitDOFProperties(), InitObstructionDistance(), 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().