mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-23 06:36:54 +00:00
24 lines
281 B
Perl
Executable File
24 lines
281 B
Perl
Executable File
# 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;
|