MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ConditionJump

Method ConditionJump

ogsr_engine/xrGame/ActorCondition.cpp:425–430  ·  view source on GitHub ↗

weight - "удельный" вес от 0..1

Source from the content-addressed store, hash-verified

423
424// weight - "удельный" вес от 0..1
425void CActorCondition::ConditionJump(float weight)
426{
427 float power = m_fJumpPower;
428 power += m_fJumpWeightPower * weight * (weight > 1.f ? m_fOverweightJumpK : 1.f);
429 m_fPower -= HitPowerEffect(power);
430}
431void CActorCondition::ConditionWalk(float weight, bool accel, bool sprint)
432{
433 float power = m_fWalkPower;

Callers 1

g_cl_CheckControlsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected