140 PrintString(
"RecoilBase | ApplyMouseOffset processing: " +
b1);
184 return weapon.GetPropertyModifierObject().m_RecoilModifiers;
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
static float EaseOutBack(float t, float magnitude=1.70158)
void RecoilBase(Weapon_Base weapon)
void Destroy()
Destroys this object next update tick.
vector GetRecoilModifier(Weapon_Base weapon)
float m_CamOffsetRelativeTime
float m_CamOffsetDistance
float m_MouseOffsetDistance
float m_MouseOffsetRangeMax
vector GetPositionOnCurve(array< vector > points, float time)
void Update(SDayZPlayerAimingModel pModel, out float axis_mouse_x, out float axis_mouse_y, out float axis_hands_x, out float axis_hands_y, float pDt)
void PostInit(Weapon_Base weapon)
vector m_MouseOffsetTargetAccum
void ApplyMouseOffset(float pDt, out float pRecResultX, out float pRecResultY)
void ApplyHandsOffset(float pDt, out float pRecResultX, out float pRecResultY)
float m_MouseOffsetRelativeTime
float m_HandsOffsetRelativeTime
vector m_MouseOffsetTarget
void ApplyCamOffset(SDayZPlayerAimingModel pModel)
float m_MouseOffsetRangeMin
ref array< vector > m_HandsCurvePoints
proto string ToString(bool beautify=true)
Vector to string.
proto static native vector YawToVector(float yaw)
Returns vector of yaw.
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
static proto native vector Curve(ECurveType type, float param, notnull array< vector > points)
Computes curve.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...