no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@835 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-01-16 20:43:50 +00:00
parent fc91d9f79b
commit 8853f9c7c6
4 changed files with 9 additions and 2 deletions
+1
View File
@@ -40,6 +40,7 @@ registersound "weapon/grenade_throw" // S_GRENADETHROW
registersound "weapon/pistol_akreload" // S_RAKIMBO
registersound "misc/change_gun" // S_GUNCHANGE
registersound "player/gib" // S_GIB
registersound "misc/headshot" // S_HEADSHOT
alias fade [ // 0=in, 1=out
alias stepsize 5
+1
View File
@@ -497,6 +497,7 @@ void selfdamage(int damage, int actor, playerent *act, bool gib, playerent *pl)
deathstate(pl);
pl->lifesequence++;
playsound(S_DIE1+rnd(2), pl!=player1 ? &pl->o : NULL);
if(act && act->gunselect == GUN_SNIPER && gib) playsound(S_HEADSHOT);
if(gib) addgib(pl);
if(pl!=player1 || act->type==ENT_BOT) act->frags += gib ? 2 : 1;
}
+6 -1
View File
@@ -255,14 +255,17 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
{
if(!d) return;
int actor = getint(p);
playerent *act;
s_sprintfd(death)("%s", gib ? "GIBBED" : "fragged");
if(actor==cn)
{
conoutf("\f2%s suicided", d->name);
act = d;
}
else if(actor==clientnum)
{
act = player1;
int frags;
if(isteam(player1->team, d->team))
{
@@ -284,6 +287,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
playerent *a = getclient(actor);
if(a)
{
act = a;
if(isteam(a->team, d->team))
{
conoutf("\f2%s %s his teammate (%s)", a->name, death, d->name);
@@ -296,6 +300,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
};
};
playsound(S_DIE1+rnd(2), &d->o);
if(act && act->gunselect == GUN_SNIPER && gib) playsound(S_HEADSHOT);
if(!c2si) d->lifesequence++;
gib = false;
break;
@@ -510,7 +515,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_FORCETEAM:
{
changeteam(getint(p));
if(!m_arena || firstplayer) spawnplayer(player1);
if(!m_arena || firstplayer) spawnplayer(player1);
break;
};
+1 -1
View File
@@ -18,7 +18,7 @@ enum
S_GRUNT1, S_GRUNT2, S_RUMBLE,
S_FLAGDROP, S_FLAGPICKUP, S_FLAGRETURN, S_FLAGSCORE,
S_GRENADEPULL, S_GRENADETHROW,
S_RAKIMBO, S_GUNCHANGE, S_GIB,
S_RAKIMBO, S_GUNCHANGE, S_GIB, S_HEADSHOT,
S_NULL
};