163 {
164 float breathing_offset_x;
165 float breathing_offset_y;
166
167 float noise_offset_x;
168 float noise_offset_y;
169
170 float shake_offset_x;
171 float shake_offset_y;
172
173 float recoil_offset_mouse_x;
174 float recoil_offset_mouse_y;
175
176 float recoil_offset_hands_x;
177 float recoil_offset_hands_y;
178
179 float kuru_offset_x;
180 float kuru_offset_y;
181
182 float player_stamina =
m_PlayerPb.GetStaminaHandler().GetSyncedStaminaNormalized();
183
184 #ifdef DEVELOPER
186 #endif
187
188
190 {
191 player_stamina = 1;
192 }
195
197 {
203 }
205 {
207 }
208
211
213
217
219 if (shake_level != 0)
220 {
221 ApplyShakes(shake_offset_x, shake_offset_y, shake_level);
222 }
223
226 {
227 m_CurrentRecoil.Update(pModel, recoil_offset_mouse_x, recoil_offset_mouse_y, recoil_offset_hands_x, recoil_offset_hands_y, pDt);
228 }
229
231 {
232 m_KuruShake.Update(pDt, kuru_offset_x, kuru_offset_y);
233 }
234
236 pModel.
m_fAimXHandsOffset = breathing_offset_x + noise_offset_x + recoil_offset_hands_x + shake_offset_x + kuru_offset_x;
237 pModel.
m_fAimYHandsOffset = breathing_offset_y + noise_offset_y + recoil_offset_hands_y + shake_offset_y + kuru_offset_y;
238
239 #ifdef DEVELOPER
246 #endif
250
251
252 #ifdef DEVELOPER
255 #endif
256
259 {
262 }
265
267 {
268
269 }
273
274 #ifdef DEVELOPER
277 #endif
278
280 {
285 }
287 {
289 }
290
292 {
296 }
297
299 {
301 }
302 #ifdef DEVELOPER
304 #endif
305 return true;
306 }
void DayZPlayerUtils()
cannot be instantiated
float m_StaminaPercentage
ref KuruShake m_KuruShake
static float m_AimXClampRanges[]
float m_HoldBreathSwayCoef
stamina percentage at hold breath start
float CalculateWeight(int stance_index, float current_stamina, float camera_sway_modifier, bool holding_breath)
float m_HorizontalNoiseXAxisOffset
void DbgPrintAimingImplement(string val)
float CalculateSpeedMultiplier(float stamina)
void ApplyShakes(out float x_axis, out float y_axis, int level)
ref RecoilBase m_CurrentRecoil
void ApplyBreathingPattern(out float x_axis, out float y_axis, float pAmplitude, float pTotalTime, float weight)
float m_LastSwayMultiplier
float m_BreathingXAxisOffset
float m_BreathingYAxisOffset
DayZPlayerImplement m_PlayerDpi
float CalculateSwayMultiplier()
void ApplyHorizontalNoise(out float x_axis, out float y_axis, float smooth_time, float max_velocity_low, float max_velocity_high, float velocity_modifier, float max_distance, float weight, float pDt)
DayZPlayerConstants
defined in C++