source-engine-2018-hl2_src/devtools/bin/playback_getvb.pl
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

24 lines
281 B
Perl

# 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;