MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / SelectWeightedSequence

Method SelectWeightedSequence

src/game/shared/animation.cpp:277–337  ·  view source on GitHub ↗

Pick a sequence for the given activity. If the current sequence is appropriate for the current activity, and its stored weight is negative (whatever that means), always select it. Otherwise perform a weighted selection -- imagine a large roulette wheel, with each sequence having a number of spaces corresponding to its weight.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SelectWeightedSequenceFunction · 0.45

Calls 6

IsInPredictionFunction · 0.85
SharedRandomIntFunction · 0.85
RandomIntFunction · 0.85
pszNameMethod · 0.45
FindMethod · 0.45
IsValidHandleMethod · 0.45

Tested by

no test coverage detected