From cf034332d3a8c99bff73893a097e104f7234bd66 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Mon, 8 Jul 2019 20:55:44 +0300 Subject: [PATCH] Fix pitdrone spit offset --- dlls/rp/pitdrone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/rp/pitdrone.cpp b/dlls/rp/pitdrone.cpp index 72dbe4c7..c5c8319e 100644 --- a/dlls/rp/pitdrone.cpp +++ b/dlls/rp/pitdrone.cpp @@ -510,7 +510,7 @@ void CPitDrone::HandleAnimEvent(MonsterEvent_t *pEvent) // !!!HACKHACK - the spot at which the spit originates (in front of the mouth) was measured in 3ds and hardcoded here. // we should be able to read the position of bones at runtime for this info. - vecSpitOffset = (gpGlobals->v_forward * 36 + gpGlobals->v_up * 15); + vecSpitOffset = (gpGlobals->v_forward * 15 + gpGlobals->v_up * 36); vecSpitOffset = (pev->origin + vecSpitOffset); //vecSpitDir = ((m_hEnemy->pev->origin + m_hEnemy->pev->view_ofs) - vecSpitOffset).Normalize(); vecSpitDir = (m_hEnemy->BodyTarget(pev->origin) - vecSpitOffset).Normalize();