From 568b9f1f4a4f6cd269f026c10117d76329b44dd8 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 14 Jul 2007 13:09:42 +0000 Subject: added chat, better damage indicators --- src/game/game.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/game/game.h') diff --git a/src/game/game.h b/src/game/game.h index 9b21a4ed..f9f41d13 100644 --- a/src/game/game.h +++ b/src/game/game.h @@ -30,11 +30,19 @@ enum OBJTYPE_PROJECTILE, OBJTYPE_POWERUP, EVENT_EXPLOSION, - EVENT_HEALTHMOD, + EVENT_DAMAGEINDICATION, EVENT_SOUND, EVENT_SMOKE, }; +enum +{ + MSG_NULL=0, + MSG_SAY, + MSG_CHAT, + MSG_SETNAME, +}; + enum { EMOTE_NORMAL=0, @@ -67,11 +75,10 @@ struct ev_sound int sound; // if (0x80000000 flag is set -> looping) if (0x40000000 is set -> stop looping }; -struct ev_healthmod +struct ev_damageind { - int x, y; // could perhaps be an client id - int vx, vy; // should be an angle instead - int amount; + int x, y; + int angle; }; struct obj_projectile @@ -91,7 +98,6 @@ struct obj_powerup struct obj_player { //int name[8]; - int local; int clientid; @@ -106,7 +112,6 @@ struct obj_player // current active weapon int weapon; // current active modifier - //int modifier; // num attack ticks left of current attack int attacktick; -- cgit 1.4.1