161 {
162 float breathing_offset_x;
163 float breathing_offset_y;
164
165 float noise_offset_x;
166 float noise_offset_y;
167
168 float shake_offset_x;
169 float shake_offset_y;
170
171 float recoil_offset_mouse_x;
172 float recoil_offset_mouse_y;
173
174 float recoil_offset_hands_x;
175 float recoil_offset_hands_y;
176
177 float kuru_offset_x;
178 float kuru_offset_y;
179
180 float player_stamina =
m_PlayerPb.GetStaminaHandler().GetSyncedStaminaNormalized();
181
182 #ifdef DEVELOPER
184 #endif
185
186
188 {
189 player_stamina = 1;
190 }
193
195 {
198 }
200 {
202 }
203
206
208
212
214 if (shake_level != 0)
215 {
216 ApplyShakes(shake_offset_x, shake_offset_y, shake_level);
217 }
218
221 {
222 m_CurrentRecoil.Update(pModel, recoil_offset_mouse_x, recoil_offset_mouse_y, recoil_offset_hands_x, recoil_offset_hands_y, pDt);
223 }
224
226 {
227 m_KuruShake.Update(pDt, kuru_offset_x, kuru_offset_y);
228 }
229
231 pModel.
m_fAimXHandsOffset = breathing_offset_x + noise_offset_x + recoil_offset_hands_x + shake_offset_x + kuru_offset_x;
232 pModel.
m_fAimYHandsOffset = breathing_offset_y + noise_offset_y + recoil_offset_hands_y + shake_offset_y + kuru_offset_y;
233
234 #ifdef DEVELOPER
241 #endif
245
246
247 #ifdef DEVELOPER
250 #endif
251
254 {
257 }
260
262 {
263
264 }
268
269 #ifdef DEVELOPER
272 #endif
273
275 {
280 }
282 {
284 }
285
287 {
291 }
292
294 {
296 }
297 #ifdef DEVELOPER
299 #endif
300 return true;
301 }
void DayZPlayerUtils()
cannot be instantiated
float m_StaminaPercentage
ref KuruShake m_KuruShake
static float m_AimXClampRanges[]
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++