Advertisement
Lorfa

how_to_nq_demo_pov

Jan 25th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Use lmpc to decompile the demo
  2. This creates a big text file of the demo.
  3. (for example lmpc -s somedemo.dem somedemo.txt)
  4.  
  5. Open with openOffice
  6.  
  7. Use the find and replace function and input the following:
  8.  
  9. Find: ^.*setangle.*$
  10.  
  11. Replace with: blank
  12.  
  13. Make sure regular expressions on
  14.  
  15. Look through the document and find which entity is the player
  16. pov that you want. Player # and entity # are off by one, player 0
  17. is entity 1, player 1 is entity 2, etc.
  18.  
  19. When you found this change both entries of setview to this
  20. entity number. There are two! The second one appears to be the
  21. most effectual.
  22.  
  23. Note: Takes a long time to open, find&replace and save.
  24.  
  25. After this copy to documents and settings->labyrinth->demofix
  26. or some directory that has or will have demofix5.exe
  27.  
  28. rename modified demo text file to 'data.txt'
  29.  
  30. Open demofix5.cpp and change entityX to the entity you want. For example,
  31. 'string entity1 = " entity 1;";
  32.  
  33. change to:
  34.  
  35. 'string entity2 = " entity 2;";
  36.  
  37. Save and compile.
  38.  
  39. Run demofix.exe in the same directory as data.txt this will output angles.txt
  40.  
  41. Run camera.exe, this will replace the camera angles with
  42. those in angles.txt and output fixedfile.txt
  43.  
  44. Move this to lmpc directory if necessary, and lmpc it back into a demo
  45. binary. (for example lmpc -l fixedfile.txt somedemofixed.dem)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement