Explicitly set all 0.7 dmg event fields

This commit is contained in:
ChillerDragon 2024-01-02 13:40:13 +01:00
parent caeebaf4a0
commit 81c43ded42

View file

@ -81,11 +81,17 @@ void CEventHandler::EventToSixup(int *pType, int *pSize, const char **ppData)
pEvent7->m_X = pEvent->m_X;
pEvent7->m_Y = pEvent->m_Y;
pEvent7->m_ClientID = 0;
pEvent7->m_Angle = 0;
// This will need some work, perhaps an event wrapper for damageind,
// a scan of the event array to merge multiple damageinds
// or a separate array of "damage ind" events that's added in while snapping
pEvent7->m_HealthAmount = 1;
pEvent7->m_ArmorAmount = 0;
pEvent7->m_Self = 0;
*ppData = s_aEventStore;
}
else if(*pType == NETEVENTTYPE_SOUNDGLOBAL) // No more global sounds for the server