void CCustomReactionFunctions::ReactionDoNothing(CActor& actor, const SReactionParams& reactionParams, const HitInfo& hitInfo) { CHitDeathReactionsPtr pHitDeathReactions = GetActorHitDeathReactions(actor); if (pHitDeathReactions) { pHitDeathReactions->EndCurrentReaction(); } }
int CScriptBind_HitDeathReactions::EndCurrentReaction(IFunctionHandler *pH) { bool bSuccess = false; CHitDeathReactionsPtr pHitDeathReactions = GetHitDeathReactions(pH); if (pHitDeathReactions) bSuccess = pHitDeathReactions->EndCurrentReaction(); return pH->EndFunction(bSuccess); }