home *** CD-ROM | disk | FTP | other *** search
- /*
- **
- ** _message.qc (Messages Code, 1.0)
- **
- ** Copyright (C) 1996 Johannes Plass
- **
- ** This program is free software; you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation; either version 2 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- **
- ** Author: Johannes Plass (plass@dipmza.physik.uni-mainz.de)
- **
- */
-
-
- void(entity player) MessagesInit =
- {
- if (!USE_MODULE_MESSAGES) {
- return;
- }
- };
-
- void(entity player) MessagesInfo =
- {
- local float n;
-
- if (!USE_MODULE_MESSAGES) {
- return;
- }
-
- if (messages_flag ==
- (MESSAGES_AMMO | MESSAGES_ARMOR | MESSAGES_BACKPACK | MESSAGES_KEY |
- MESSAGES_HEALTH | MESSAGES_POWERUP | MESSAGES_WEAPON)) {
- return;
- }
-
- sprint(player,"# Messages: No pickup messages for\n");
- sprint(player," ");
-
- n = 0;
- if (!(messages_flag & MESSAGES_AMMO)) {
- n = n + 1;
- sprint(player,"ammo");
- }
- if (!(messages_flag & MESSAGES_ARMOR)) {
- if (n) sprint(player,", ");
- n = n + 1;
- sprint(player,"armor");
- }
- if (!(messages_flag & MESSAGES_BACKPACK)) {
- if (n) sprint(player,", ");
- n = n + 1;
- sprint(player,"backpacks");
- }
- if (!(messages_flag & MESSAGES_KEY)) {
- if (n) sprint(player,", ");
- n = n + 1;
- sprint(player,"keys");
- }
- if (!(messages_flag & MESSAGES_HEALTH)) {
- if (n) sprint(player,", ");
- n = n + 1;
- if (n>4) { sprint(player,"\n "); n = 1; }
- sprint(player,"health");
- }
- if (!(messages_flag & MESSAGES_POWERUP)) {
- if (n) sprint(player,", ");
- n = n + 1;
- if (n>4) { sprint(player,"\n "); n = 1; }
- sprint(player,"powerups");
- }
- if (!(messages_flag & MESSAGES_WEAPON)) {
- if (n) sprint(player,", ");
- n = n + 1;
- if (n>4) { sprint(player,"\n "); n = 1; }
- sprint(player,"weapons");
- }
- if (n) sprint(player,".\n");
- };
-
-
-
-
-