Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
281 B

  1. # getframe.pl vbid blah.txt
  2. $desiredVB = shift;
  3. open INPUT, shift || die;
  4. while( <INPUT> )
  5. {
  6. if( /Dx8VertexData: id: (\d+)\s+/ )
  7. {
  8. if( $1 == $desiredVB )
  9. {
  10. print;
  11. $gotit = 1;
  12. }
  13. }
  14. elsif( $gotit && /^vertex:/ )
  15. {
  16. print;
  17. }
  18. else
  19. {
  20. $gotit = 0;
  21. }
  22. }
  23. close INPUT;