Don't spawn TRANSPORTERSTAR if FURY

git-svn-id: https://svn.eduke32.com/eduke32@8032 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-16 12:05:21 +00:00 committed by Christoph Oelckers
parent 3dcbf9955d
commit 1b5edf9551
2 changed files with 16 additions and 5 deletions

View file

@ -2985,6 +2985,7 @@ ACTOR_STATIC void Proj_MoveCustom(int const spriteNum)
int playerNum = P_Get(otherSprite);
#ifndef EDUKE32_STANDALONE
if (!FURY)
A_PlaySound(PISTOL_BODYHIT, otherSprite);
#endif
if (pProj->workslike & PROJECTILE_SPIT)
@ -3020,7 +3021,10 @@ ACTOR_STATIC void Proj_MoveCustom(int const spriteNum)
{
Proj_BounceOffWall(pSprite, otherSprite);
pSprite->owner = spriteNum;
#ifndef EDUKE32_STANDALONE
if (!FURY)
A_Spawn(spriteNum, TRANSPORTERSTAR);
#endif
return;
}
else
@ -3103,6 +3107,9 @@ ACTOR_STATIC void G_MoveWeapons(void)
goto next_sprite;
}
if (FURY)
goto next_sprite;
// hard coded projectiles
switch (DYNAMICTILEMAP(pSprite->picnum))
{

View file

@ -1018,9 +1018,13 @@ void G_OperateRespawns(int lotag)
{
if (!ud.monsters_off || !A_CheckEnemyTile(pSprite->hitag))
{
#ifndef EDUKE32_STANDALONE
if (!FURY)
{
int const j = A_Spawn(spriteNum, TRANSPORTERSTAR);
sprite[j].z -= ZOFFSET5;
}
#endif
// Just a way to killit (see G_MoveFX(): RESPAWN__STATIC)
pSprite->extra = 66-12;
}