home *** CD-ROM | disk | FTP | other *** search
-
- FragReport new files:
-
- freport.qc
-
- FragReport modified files:
-
- progs.src
- defs.qc
- weapons.qc
- client.qc
-
-
- FragReport modifications, file-by-file:
-
- ==========
- PROGS.SRC
-
- Add the line
-
- freport.qc // FragReport mod
-
- to the end
-
- ==========
- DEFS.QC
-
- Add the line
-
- .float entity_ID // unique ID for FragReport
-
- after the line
-
- void end_sys_fields;
-
- ==========
- WEAPONS.QC
-
- At the top of the file, make the following
- function declaration:
-
- //
- //FragReport mod
- // extern FragReport function declarations
- void() FragReport;
-
- Inside the function ImpulseCommands(), add the
- following lines prior to the "self.impulse = 0" statement
-
- //
- //FragReport mod
- // Use 222 to key a call to FragReport()
- if (self.impulse == 222)
- FragReport ();
-
- Note that "222" was an arbitrary choice; this can be modified
- by simply changing the number in the if-check to whatever is desired.
-
- ==========
- CLIENT.QC
-
- At the top of the file, make the following function
- declarations:
-
- //
- //FragReport mod
- // extern FragReport function declarations
- void(entity c) FragReportRegister;
- void(entity attacker, entity target) FragReportUpdate;
- void(entity c) FragReportLeave;
-
- Within the function ClientConnect(), put the following
- lines in before the return statement.
-
- //
- //FragReport mod
- // Register player in FragReport matrix
- //
- FragReportRegister(self);
-
- Within the function ClientDisconnect(), put the following
- lines in before the return statement.
-
- //
- //FragReport mod
- // Erase player from FragReport matrix
- //
- FragReportLeave(self);
-
- Within the function ClientObituary(), put the following
- lines in right after the local variables are defined, but
- before the first execution statement.
-
- //
- //FragReport mod
- // Record frag in FragReport matrix
- //
- FragReportUpdate( attacker, targ );
-
- ==========
-