diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /devtools/bin/playback_getvb.pl | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'devtools/bin/playback_getvb.pl')
| -rw-r--r-- | devtools/bin/playback_getvb.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/bin/playback_getvb.pl b/devtools/bin/playback_getvb.pl new file mode 100644 index 0000000..c2ac79b --- /dev/null +++ b/devtools/bin/playback_getvb.pl @@ -0,0 +1,23 @@ +# getframe.pl vbid blah.txt +$desiredVB = shift; +open INPUT, shift || die; +while( <INPUT> ) +{ + if( /Dx8VertexData: id: (\d+)\s+/ ) + { + if( $1 == $desiredVB ) + { + print; + $gotit = 1; + } + } + elsif( $gotit && /^vertex:/ ) + { + print; + } + else + { + $gotit = 0; + } +} +close INPUT; |