Class ModelConfigRandomPick
Namespace: ValveResourceFormat.ResourceTypes.ModelData
Assembly: ValveResourceFormat.dll
Follows a config picked at random, unless the config_state of the entity holds the index of the choice at ModelConfigElement.StateKey.
csharp
public sealed class ModelConfigRandomPick : ModelConfigElementInheritance
object ← ModelConfigElement ← ModelConfigRandomPick
Inherited Members
ModelConfigElement.Name, ModelConfigElement.StateKey, ModelConfigElement.NestedElements
Properties
ChoiceWeights
Gets how likely each choice is, or nothing when they are equally likely.
csharp
public IReadOnlyList<float> ChoiceWeights { get; }Property Value
IReadOnlyList<float>
Choices
Gets the names of the configs to pick from.
csharp
public IReadOnlyList<string> Choices { get; }Property Value
IReadOnlyList<string>

