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:
@@ -495,3 +495,13 @@ guninfo guns[NUMGUNS] =
|
||||
const char *teamnames[TEAM_NUM+1] = {"CLA", "RVSF", "CLA-SPECT", "RVSF-SPECT", "SPECTATOR", "void"};
|
||||
const char *teamnames_s[TEAM_NUM+1] = {"CLA", "RVSF", "CSPC", "RSPC", "SPEC", "void"};
|
||||
|
||||
// for both client and server
|
||||
// default messages are hardcoded ! (in case there's a problem with cfgs)
|
||||
char fragmessages[NUMGUNS][MAXKILLMSGLEN] = { "", "busted", "shredded", "peppered", "sprayed", "punctured", "picked off", "busted", "", "busted" };
|
||||
char gibmessages[NUMGUNS][MAXKILLMSGLEN] = { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" };
|
||||
|
||||
inline char *killmessage(int gun, bool gib = false)
|
||||
{
|
||||
if(gib) return gibmessages[gun];
|
||||
else return fragmessages[gun];
|
||||
}
|
||||
Reference in New Issue
Block a user