mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Merge pull request #7751 from ChillerDragon/pr_setalldmgfields
Explicitly set all 0.7 dmg event fields
This commit is contained in:
commit
5cee4177cd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue