mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-03-06 22:14:09 +01:00
tf: fix halloween spell projectiles not getting flipped
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user