mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
Renamed SpidPoisonTarget to SpidPoisonPlayer
This commit is contained in:
parent
44e6ccb3d4
commit
8ec6cdaf91
1 changed files with 5 additions and 5 deletions
|
@ -44,7 +44,7 @@ AISTATE spidBite = { kAiStateChase, 6, nSpidBiteClient, 60, NULL, NULL, NULL, &s
|
||||||
AISTATE spidJump = { kAiStateChase, 8, nSpidJumpClient, 60, NULL, aiMoveForward, NULL, &spidChase };
|
AISTATE spidJump = { kAiStateChase, 8, nSpidJumpClient, 60, NULL, aiMoveForward, NULL, &spidChase };
|
||||||
AISTATE spidBirth = { kAiStateOther, 0, nSpidBirthClient, 60, NULL, NULL, NULL, &spidIdle };
|
AISTATE spidBirth = { kAiStateOther, 0, nSpidBirthClient, 60, NULL, NULL, NULL, &spidIdle };
|
||||||
|
|
||||||
static char SpidPoisonTarget(XSPRITE *pXDude, int nBlind, int max)
|
static char SpidPoisonPlayer(XSPRITE *pXDude, int nBlind, int max)
|
||||||
{
|
{
|
||||||
assert(pXDude != NULL);
|
assert(pXDude != NULL);
|
||||||
int nDude = pXDude->reference;
|
int nDude = pXDude->reference;
|
||||||
|
@ -90,11 +90,11 @@ void SpidBiteSeqCallback(int, DBloodActor* actor)
|
||||||
break;
|
break;
|
||||||
case kDudeSpiderRed:
|
case kDudeSpiderRed:
|
||||||
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
||||||
if (Chance(0x5000)) SpidPoisonTarget(pXTarget, 4, 16);
|
if (Chance(0x5000)) SpidPoisonPlayer(pXTarget, 4, 16);
|
||||||
break;
|
break;
|
||||||
case kDudeSpiderBlack:
|
case kDudeSpiderBlack:
|
||||||
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
||||||
SpidPoisonTarget(pXTarget, 8, 16);
|
SpidPoisonPlayer(pXTarget, 8, 16);
|
||||||
break;
|
break;
|
||||||
case kDudeSpiderMother: {
|
case kDudeSpiderMother: {
|
||||||
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
||||||
|
@ -103,9 +103,9 @@ void SpidBiteSeqCallback(int, DBloodActor* actor)
|
||||||
dy += Random2(2000);
|
dy += Random2(2000);
|
||||||
dz += Random2(2000);
|
dz += Random2(2000);
|
||||||
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
actFireVector(pSprite, 0, 0, dx, dy, dz, kVectorSpiderBite);
|
||||||
SpidPoisonTarget(pXTarget, 8, 16);
|
SpidPoisonPlayer(pXTarget, 8, 16);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue