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.

27 lines
516 B

  1. # This gives you all calls between lock and unlock for the specified texture.
  2. # gettexlock.pl texid blah.txt
  3. $desiredTexture = shift;
  4. open INPUT, shift || die;
  5. while( <INPUT> )
  6. {
  7. if( /Dx8LockTexture: id: (\d+)\s+/ )
  8. {
  9. if( $1 == $desiredTexture )
  10. {
  11. print "----------------------------------------------------\n";
  12. print;
  13. $gotit = 1;
  14. }
  15. }
  16. elsif( $gotit && /Dx8UnlockTexture: id: (\d+)\s+/ )
  17. {
  18. die if $1 != $desiredTexture;
  19. print;
  20. $gotit = 0;
  21. }
  22. else
  23. {
  24. print if( $gotit );
  25. }
  26. }
  27. close INPUT;