DIFF

class DayZAIHitComponentHelpersSource

Methods 3

static bool SelectMostProbableHitComponent(array<ref DayZAIHitComponent> pHitComponents, out string pHitComponent)

Computes hit component probability based on weights

in pHitComponents
array that keeps registered compoenents
out pHitComponent
selected component name (can be passed to Damage System)

Returns: true if found, false otherwise

static int SumOfWeights(array<ref DayZAIHitComponent> pHitComponents)

Calculates the sum of all entries in DayZAIHitComponent array

in pHitComponents
array that keeps registered compoenents

Returns: Sum of weights of all entries in array