home *** CD-ROM | disk | FTP | other *** search
/ Qu-ake / Qu-ake.iso / qu_ke / patches / 023 / EDITING.TXT < prev    next >
Encoding:
Text File  |  1996-09-21  |  2.0 KB  |  101 lines

  1.  
  2. FragReport new files:
  3.  
  4.  freport.qc
  5.  
  6. FragReport modified files:
  7.  
  8.  progs.src
  9.  defs.qc
  10.  weapons.qc
  11.  client.qc
  12.  
  13.  
  14. FragReport modifications, file-by-file:
  15.  
  16. ==========
  17. PROGS.SRC
  18.  
  19. Add the line
  20.  
  21.      freport.qc             // FragReport mod
  22.  
  23. to the end
  24.  
  25. ==========
  26. DEFS.QC
  27.  
  28. Add the line
  29.  
  30.      .float entity_ID       // unique ID for FragReport
  31.  
  32. after the line
  33.  
  34.      void     end_sys_fields;
  35.  
  36. ==========
  37. WEAPONS.QC
  38.  
  39. At the top of the file, make the following
  40. function declaration:
  41.  
  42.      //
  43.      //FragReport mod
  44.      // extern FragReport function declarations
  45.      void() FragReport;
  46.  
  47. Inside the function ImpulseCommands(), add the
  48. following lines prior to the "self.impulse = 0" statement
  49.  
  50.      //
  51.      //FragReport mod
  52.      // Use 222 to key a call to FragReport()
  53.      if (self.impulse == 222)
  54.          FragReport ();
  55.  
  56. Note that "222" was an arbitrary choice; this can be modified
  57. by simply changing the number in the if-check to whatever is desired.
  58.  
  59. ==========
  60. CLIENT.QC
  61.  
  62. At the top of the file, make the following function
  63. declarations:
  64.  
  65.      //
  66.      //FragReport mod
  67.      // extern FragReport function declarations
  68.      void(entity c) FragReportRegister;
  69.      void(entity attacker, entity target) FragReportUpdate;
  70.      void(entity c) FragReportLeave;
  71.  
  72. Within the function ClientConnect(), put the following
  73. lines in before the return statement.
  74.  
  75.      //
  76.      //FragReport mod
  77.      // Register player in FragReport matrix
  78.      //      
  79.      FragReportRegister(self);
  80.  
  81. Within the function ClientDisconnect(), put the following
  82. lines in before the return statement.
  83.  
  84.      //
  85.      //FragReport mod
  86.      // Erase player from FragReport matrix
  87.      //
  88.      FragReportLeave(self);
  89.  
  90. Within the function ClientObituary(), put the following
  91. lines in right after the local variables are defined, but
  92. before the first execution statement.
  93.  
  94.      //
  95.      //FragReport mod
  96.      // Record frag in FragReport matrix
  97.      //
  98.      FragReportUpdate( attacker, targ );
  99.  
  100. ==========
  101.