source-engine/devtools/bin/playback_getvb.pl

24 lines
281 B
Perl
Raw Normal View History

2020-04-22 16:56:21 +00:00
# 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;