home *** CD-ROM | disk | FTP | other *** search
- //====================================================================
- //
- // Server Message by: Perecli Manole AKA Bort
- //
- //====================================================================
- // Aside from this new file, the following are the modifications
- // done to id's original source files:
- //--------------------------------------------------------------------
- // File: Progs.src
- // Location: before the "client.qc" line
- // Added: servmsg.qc
- //--------------------------------------------------------------------
- // File: Client.qc
- // Procedure: ClientConnect
- // Location: next line after bprint (" entered the game\n");
- // Added: ServMsg(self);
- //--------------------------------------------------------------------
-
-
- //--------------------------------------------------------------------
- // Print and disolve message entity
- //--------------------------------------------------------------------
- void () Print =
- {
- centerprint(self.owner,"Server running Bort patch v2.2");
- self.nextthink = time + 1.8; // reprint interval
- self.think = Print;
- if (self.ltime < time)
- remove (self);
- };
-
-
- //--------------------------------------------------------------------
- // Spawns message entity
- //--------------------------------------------------------------------
- void(entity myself) ServMsg =
- {
- local entity msg;
-
- msg = spawn ();
- msg.owner = myself;
- msg.ltime = time + 3; // duration of message
- msg.nextthink = time + 1; // wait time before initial print
- msg.think = Print;
- };