int CScriptBind_HitDeathReactions::ExecuteDeathReaction (IFunctionHandler *pH, SmartScriptTable reactionParams)
{
	CHitDeathReactionsPtr pHitDeathReactions = GetHitDeathReactions(pH);
	if (pHitDeathReactions)
		pHitDeathReactions->ExecuteDeathReaction(reactionParams);

	return pH->EndFunction();
}
void CCustomReactionFunctions::MeleeDeath_Reaction(CActor& actor, const SReactionParams& reactionParams, const HitInfo& hitInfo)
{
	CHitDeathReactionsPtr pHitDeathReactions = GetActorHitDeathReactions(actor);
	if (pHitDeathReactions)
	{
			if (!reactionParams.reactionAnim->animCRCs.empty())
			{
					// If an animation is present, execute the default reaction code
					pHitDeathReactions->ExecuteDeathReaction(reactionParams);
			}
			else
			{
					// Apply Death impulses
					DeathImpulse_Reaction(actor, reactionParams, hitInfo);
			}
	}
}