File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1481,7 +1481,28 @@ bool CTFPlayerAnimState::HandleJumping( Activity &idealActivity )
14811481 TFPlayerClassData_t *pData = m_pTFPlayer->GetPlayerClass ()->GetData ();
14821482 bool bValidAirWalkClass = ( pData && pData->m_bDontDoAirwalk == false );
14831483
1484+ #ifdef BDSBASE
1485+ // Account for jump height to avoid skipping the jump start animation
1486+ float flJumpMod = 1 .f ;
1487+ if (bValidAirWalkClass && !m_bInAirWalk)
1488+ {
1489+ CALL_ATTRIB_HOOK_FLOAT_ON_OTHER (m_pTFPlayer, flJumpMod, mod_jump_height);
1490+ CTFWeaponBase* pWpn = m_pTFPlayer->GetActiveTFWeapon ();
1491+ if (pWpn)
1492+ {
1493+ CALL_ATTRIB_HOOK_FLOAT_ON_OTHER (pWpn, flJumpMod, mod_jump_height_from_weapon);
1494+ }
1495+
1496+ if (m_pTFPlayer->m_Shared .GetCarryingRuneType () == RUNE_AGILITY)
1497+ {
1498+ flJumpMod *= 1 .8f ;
1499+ }
1500+ }
1501+
1502+ if (bValidAirWalkClass && (vecVelocity.z > 300 .0f * flJumpMod || m_bInAirWalk || m_pTFPlayer->GetGrapplingHookTarget () != NULL ) && !bInDuck)
1503+ #else
14841504 if ( bValidAirWalkClass && ( vecVelocity.z > 300 .0f || m_bInAirWalk || m_pTFPlayer->GetGrapplingHookTarget () != NULL ) && !bInDuck )
1505+ #endif
14851506 {
14861507 // Check to see if we were in an airwalk and now we are basically on the ground.
14871508 if ( ( GetBasePlayer ()->GetFlags () & FL_ONGROUND ) && m_bInAirWalk )
You can’t perform that action at this time.
0 commit comments