Fix muzzleflash rotation

This commit is contained in:
Sergeanur 2021-02-26 20:31:26 +02:00
parent 478f6e07d4
commit c5303c2ea4

View file

@ -1066,7 +1066,11 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
if ( info->m_nFiringRate >= 50 || !(++counter & 1) ) if ( info->m_nFiringRate >= 50 || !(++counter & 1) )
{ {
#ifdef FIX_BUGS
AddGunFlashBigGuns(*fireSource, target);
#else
AddGunFlashBigGuns(*fireSource, *fireSource + target); AddGunFlashBigGuns(*fireSource, *fireSource + target);
#endif
CVector gunshellPos = *fireSource; CVector gunshellPos = *fireSource;
gunshellPos -= CVector(0.65f*ahead.x, 0.65f*ahead.y, 0.0f); gunshellPos -= CVector(0.65f*ahead.x, 0.65f*ahead.y, 0.0f);