Change hard-coded subway effect damage to generic explosive damage that can be handled by CON. Fixes subway kills not counting toward the dead monster count and allows CON scripts to handle subway damage however they like.

git-svn-id: https://svn.eduke32.com/eduke32@6225 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-06-23 03:58:13 +00:00
parent 8cda268514
commit 6319b6fb60

View file

@ -5607,7 +5607,7 @@ static void MaybeTrainKillPlayer(const spritetype *pSprite, int setOPos)
}
// i: SE spritenum
static void MaybeTrainKillEnemies(int spriteNum, int numGuts)
static void MaybeTrainKillEnemies(int spriteNum)
{
int findSprite = headspritesect[sprite[OW(spriteNum)].sectnum];
@ -5623,9 +5623,8 @@ static void MaybeTrainKillEnemies(int spriteNum, int numGuts)
if (sectNum == sprite[spriteNum].sectnum)
{
A_DoGutsDir(findSprite, JIBS6, numGuts);
A_PlaySound(SQUISHED, findSprite);
A_DeleteSprite(findSprite);
actor[findSprite].picnum = RADIUSEXPLOSION;
actor[findSprite].extra = g_impactDamage << 10;
}
}
@ -6049,7 +6048,7 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
if (ud.noclip == 0 && pSprite->xvel >= 192)
MaybeTrainKillPlayer(pSprite, 1);
MaybeTrainKillEnemies(spriteNum, 72);
MaybeTrainKillEnemies(spriteNum);
}
}
else
@ -6190,7 +6189,7 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
if (ud.noclip == 0)
MaybeTrainKillPlayer(pSprite, 1);
MaybeTrainKillEnemies(spriteNum, 24);
MaybeTrainKillEnemies(spriteNum);
}
}