@@ -84,6 +84,10 @@ ConVar tf_scout_hype_pep_min_damage( "tf_scout_hype_pep_min_damage", "5.0", FCVA
8484
8585ConVar tf_weapon_criticals_nopred ( " tf_weapon_criticals_nopred" , " 1.0" , FCVAR_REPLICATED | FCVAR_CHEAT );
8686
87+ #if defined(QUIVER_DLL)
88+ ConVar viewmodel_goldsource_stylebob (" viewmodel_goldsource_stylebob" , " 0" , FCVAR_ARCHIVE | FCVAR_REPLICATED);
89+ #endif
90+
8791#ifdef _DEBUG
8892ConVar tf_weapon_criticals_anticheat ( " tf_weapon_criticals_anticheat" , " 1.0" , FCVAR_REPLICATED );
8993ConVar tf_weapon_criticals_debug ( " tf_weapon_criticals_debug" , " 0.0" , FCVAR_REPLICATED );
@@ -4953,18 +4957,48 @@ void AddViewModelBobHelper( Vector &origin, QAngle &angles, BobState_t *pBobStat
49534957 Vector forward, right;
49544958 AngleVectors ( angles, &forward, &right, NULL );
49554959
4960+ #if defined(QUIVER_DLL)
4961+ if (viewmodel_goldsource_stylebob.GetInt () == 0 )
4962+ {
4963+ // Apply bob, but scaled down to 40%
4964+ VectorMA (origin, pBobState->m_flVerticalBob * 0 .4f , forward, origin);
4965+
4966+ // Z bob a bit more
4967+ origin[2 ] += pBobState->m_flVerticalBob * 0 .1f ;
4968+
4969+ // bob the angles
4970+ angles[ROLL] += pBobState->m_flVerticalBob * 0 .5f ;
4971+ angles[PITCH] -= pBobState->m_flVerticalBob * 0 .4f ;
4972+ angles[YAW] -= pBobState->m_flLateralBob * 0 .3f ;
4973+
4974+ VectorMA (origin, pBobState->m_flLateralBob * 0 .2f , right, origin);
4975+ }
4976+ else
4977+ {
4978+ if (viewmodel_goldsource_stylebob.GetInt () > 1 )
4979+ {
4980+ // throw in a little tilt.
4981+ angles[ROLL] -= pBobState->m_flVerticalBob * 1 ;
4982+ angles[PITCH] -= pBobState->m_flVerticalBob * 0.3 ;
4983+ angles[YAW] -= pBobState->m_flVerticalBob * 0.5 ;
4984+ }
4985+
4986+ VectorMA (origin, pBobState->m_flVerticalBob * 0 .8f , forward, origin);
4987+ }
4988+ #else
49564989 // Apply bob, but scaled down to 40%
4957- VectorMA ( origin, pBobState->m_flVerticalBob * 0 .4f , forward, origin );
4990+ VectorMA (origin, pBobState->m_flVerticalBob * 0 .4f , forward, origin);
49584991
49594992 // Z bob a bit more
49604993 origin[2 ] += pBobState->m_flVerticalBob * 0 .1f ;
49614994
49624995 // bob the angles
4963- angles[ ROLL ] += pBobState->m_flVerticalBob * 0 .5f ;
4964- angles[ PITCH ] -= pBobState->m_flVerticalBob * 0 .4f ;
4965- angles[ YAW ] -= pBobState->m_flLateralBob * 0 .3f ;
4996+ angles[ROLL] += pBobState->m_flVerticalBob * 0 .5f ;
4997+ angles[PITCH] -= pBobState->m_flVerticalBob * 0 .4f ;
4998+ angles[YAW] -= pBobState->m_flLateralBob * 0 .3f ;
49664999
4967- VectorMA ( origin, pBobState->m_flLateralBob * 0 .2f , right, origin );
5000+ VectorMA (origin, pBobState->m_flLateralBob * 0 .2f , right, origin);
5001+ #endif
49685002}
49695003
49705004// -----------------------------------------------------------------------------
0 commit comments