adding custom kill messages support

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6215 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-04-06 12:21:18 +00:00
parent 7a8bbd462c
commit aee1d4f1f2
9 changed files with 212 additions and 91 deletions
+7 -1
View File
@@ -614,6 +614,12 @@ public:
enum {MD_FRAGS = 0, MD_DEATHS, END_MDS};
struct medalsst {bool assigned; int cn; int item;};
#define MAXKILLMSGLEN 16
extern char fragmessages[NUMGUNS][MAXKILLMSGLEN];
extern char gibmessages[NUMGUNS][MAXKILLMSGLEN];
extern inline char *killmessage(int gun, bool gib);
// deprecated ?!
inline const char * gib_message(int gun)
{
switch (gun)
@@ -624,4 +630,4 @@ inline const char * gib_message(int gun)
case GUN_GRENADE:
default: return "gibbed";
}
}
}