SetDamageCustom and SetDamageBonus what is it?

Hello. GM was updated today. Can anyone explain me what do these functions



dmginfo:SetDamageCustom( float )
dmginfo:SetDamageBonus( float )


DamageCustom is a way of tracking a custom death event through a float enum. For example, from the TF2 source:


if ( info.GetAttacker() && info.GetAttacker()->IsBaseObject() )
		{
			pszCustomDeath = "customdeath:sentrygun";
		}
		else if ( info.GetInflictor() && info.GetInflictor()->IsBaseObject() )
		{
			pszCustomDeath = "customdeath:sentrygun";
		}
		else if ( info.GetDamageCustom() == TF_DMG_CUSTOM_HEADSHOT )
		{				
			pszCustomDeath = "customdeath:headshot";
		}
		else if ( info.GetDamageCustom() == TF_DMG_CUSTOM_BACKSTAB )
		{
			pszCustomDeath = "customdeath:backstab";
		}
		else if ( info.GetDamageCustom() == TF_DMG_CUSTOM_BURNING )
		{
			pszCustomDeath = "customdeath:burning";
		}

DamageBonus is for adding additional damage based on modifiers, such as critical shots or nerfs.