tf: fix halloween spell projectiles not getting flipped

This commit is contained in:
copperpixel 2025-07-25 06:33:19 +02:00 committed by EricS-Valve
parent 0379125987
commit 23e6b735a8
1 changed files with 2 additions and 2 deletions

View File

@ -939,14 +939,14 @@ void CTFSpellBook::TossJarThink( void )
Vector vecForward, vecRight, vecUp;
AngleVectors( pPlayer->EyeAngles(), &vecForward, &vecRight, &vecUp );
float fRight = 8.f;
float fRight = 7.f;
if ( IsViewModelFlipped() )
{
fRight *= -1;
}
Vector vecSrc = pPlayer->Weapon_ShootPosition();
// Make spell toss position at the hand
vecSrc = vecSrc + (vecUp * -9.0f) + (vecRight * 7.0f) + (vecForward * 3.0f);
vecSrc = vecSrc + (vecUp * -9.0f) + (vecRight * fRight) + (vecForward * 3.0f);
Vector vecVelocity = GetVelocityVector( vecForward, vecRight, vecUp ) * pSpellData->m_flSpeedScale;
QAngle angForward = pPlayer->EyeAngles();