Class PathParticleRope
Namespace: ValveResourceFormat.Utils
Assembly: ValveResourceFormat.dll
Parsers for the bracketed numeric blobs stored as strings on path_particle_rope / path_particle_rope_clientside entities (pathnodes, pathnoderadiusscales, pathnodecolors, pathnodepinsenabled). The blobs look like "[ [0,0,0, 0,0,0, 1,2,3], [...] ]"; nesting is purely cosmetic so every parser flattens the brackets and reads the numbers in order.
public static class PathParticleRopeInheritance
Fields
FloatsPerNode
Floats per pathnodes entry: position(3) + inTangent(3) + outTangent(3).
public const int FloatsPerNode = 9Field Value
Methods
ParseColors(string?)
Parses the pathnodecolors blob (nested [[r,g,b],...], components in 0-1) into per-node colors.
public static Vector3[] ParseColors(string? input)Parameters
input string?
Returns
Vector3[]
ParseFloatBlob(string?)
Flattens a bracketed blob to a flat array of floats, ignoring all bracket nesting and whitespace.
public static float[] ParseFloatBlob(string? input)Parameters
input string?
Returns
float[]
ParseNodes(string?)
Parses the pathnodes blob into a list of spline nodes (groups of 9 floats). Returns an empty list for empty/degenerate input.
public static List<PathParticleRopeNode> ParseNodes(string? pathNodes)Parameters
pathNodes string?
Returns
ParsePins(string?)
Parses the pathnodepinsenabled blob ([true, false, ...]) into a flat array of booleans.
public static bool[] ParsePins(string? input)Parameters
input string?
Returns
bool[]
ParseRadiusScales(string?)
Parses the pathnoderadiusscales blob into a flat array of per-node radius multipliers.
public static float[] ParseRadiusScales(string? input)Parameters
input string?
Returns
float[]

