Home
last modified time | relevance | path

Searched refs:pDudeInfo (Results 1 – 25 of 29) sorted by relevance

12

/dports/games/NBlood/NBlood-a1689a4/source/blood/src/
H A Daibat.cpp105 if (Chance(pDudeInfo->alertChance)) in thinkTarget()
119 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
124 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkTarget()
182 if (nDist <= pDudeInfo->seeDist) in thinkPonder()
230 t2 += pDudeInfo->sideSpeed; in MoveDodgeUp()
232 t2 -= pDudeInfo->sideSpeed; in MoveDodgeUp()
256 t2 += pDudeInfo->sideSpeed; in MoveDodgeDown()
258 t2 -= pDudeInfo->sideSpeed; in MoveDodgeDown()
291 if (nDist <= pDudeInfo->seeDist) in thinkChase()
301 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
[all …]
H A Daiboneel.cpp118 if (Chance(pDudeInfo->alertChance)) in thinkTarget()
132 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
137 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkTarget()
143 else if (nDist < pDudeInfo->hearDist) in thinkTarget()
197 if (nDist <= pDudeInfo->seeDist) in thinkPonder()
245 t2 += pDudeInfo->sideSpeed; in MoveDodgeUp()
247 t2 -= pDudeInfo->sideSpeed; in MoveDodgeUp()
271 t2 += pDudeInfo->sideSpeed; in MoveDodgeDown()
273 t2 -= pDudeInfo->sideSpeed; in MoveDodgeDown()
306 if (nDist <= pDudeInfo->seeDist) in thinkChase()
[all …]
H A Daigarg.cpp252 if (Chance(pDudeInfo->alertChance)) in thinkTarget()
266 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
271 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkTarget()
333 t2 += pDudeInfo->sideSpeed; in MoveDodgeUp()
335 t2 -= pDudeInfo->sideSpeed; in MoveDodgeUp()
363 t2 += pDudeInfo->sideSpeed; in MoveDodgeDown()
365 t2 -= pDudeInfo->sideSpeed; in MoveDodgeDown()
406 if (nDist <= pDudeInfo->seeDist) in thinkChase()
416 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
555 actHealDude(pXSprite, pDudeInfo->startHealth, pDudeInfo->startHealth); in entryFStatue()
[all …]
H A Daighost.cpp226 if (Chance(pDudeInfo->alertChance)) in thinkTarget()
240 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
245 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkTarget()
306 t2 += pDudeInfo->sideSpeed; in MoveDodgeUp()
308 t2 -= pDudeInfo->sideSpeed; in MoveDodgeUp()
336 t2 += pDudeInfo->sideSpeed; in MoveDodgeDown()
338 t2 -= pDudeInfo->sideSpeed; in MoveDodgeDown()
379 if (nDist <= pDudeInfo->seeDist) in thinkChase()
389 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
469 int nAccel = pDudeInfo->frontSpeed<<2; in MoveForward()
[all …]
H A Daizomba.cpp81 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in HackSeqCallback() local
87 int height = (pSprite->yrepeat*pDudeInfo->eyeHeight)<<2; in HackSeqCallback()
112 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
131 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
149 if (nDist <= pDudeInfo->seeDist) in thinkChase()
177 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkPonder() local
195 if (nDist <= pDudeInfo->seeDist) in thinkPonder()
223 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in myThinkTarget() local
237 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in myThinkTarget()
242 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in myThinkTarget()
[all …]
H A Daitchern.cpp86 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_71BD4() local
87 int height = pSprite->yrepeat*pDudeInfo->eyeHeight; in sub_71BD4()
165 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_720AC() local
246 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_725A4() local
258 if (Chance(pDudeInfo->alertChance)) in sub_725A4()
272 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in sub_725A4()
277 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in sub_725A4()
283 else if (nDist < pDudeInfo->hearDist) in sub_725A4()
303 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_72850() local
348 if (nDist <= pDudeInfo->seeDist) in sub_72934()
[all …]
H A Daigilbst.cpp97 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
136 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
172 if (nDist <= pDudeInfo->seeDist) in thinkChase()
178 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
246 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkSwimGoto() local
265 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkSwimChase() local
283 if (nDist <= pDudeInfo->seeDist) in thinkSwimChase()
291 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkSwimChase()
318 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_6CB00()
354 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_6CD74()
[all …]
H A Daicaleb.cpp106 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
184 if (nDist <= pDudeInfo->seeDist) in thinkChase()
190 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
296 if (nDist <= pDudeInfo->seeDist) in thinkSwimChase()
304 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkSwimChase()
326 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_65D04()
328 int nAccel = pDudeInfo->frontSpeed<<2; in sub_65D04()
362 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_65F44()
364 int nAccel = pDudeInfo->frontSpeed<<2; in sub_65F44()
398 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_661E0()
[all …]
H A Daibeast.cpp280 if (nDist <= pDudeInfo->seeDist) in thinkChase()
286 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
429 if (nDist <= pDudeInfo->seeDist) in thinkSwimChase()
437 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkSwimChase()
464 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in MoveForward()
484 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_628A0()
486 int nAccel = pDudeInfo->frontSpeed<<2; in sub_628A0()
520 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_62AE0()
522 int nAccel = pDudeInfo->frontSpeed<<2; in sub_62AE0()
556 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in sub_62D7C()
[all …]
H A Daiinnoc.cpp62 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
68 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
81 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
99 if (nDist <= pDudeInfo->seeDist) in thinkChase()
102 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
105 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Daicerber.cpp102 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in BurnSeqCallback() local
103 int height = pDudeInfo->eyeHeight*pSprite->yrepeat; in BurnSeqCallback()
188 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in BurnSeqCallback2() local
277 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkTarget() local
292 if (Chance(pDudeInfo->alertChance)) in thinkTarget()
306 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
311 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkTarget()
317 else if (nDist < pDudeInfo->hearDist) in thinkTarget()
337 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
415 if (nDist <= pDudeInfo->seeDist) in thinkChase()
[all …]
H A Daihand.cpp83 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
89 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
102 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
120 if (nDist <= pDudeInfo->seeDist) in thinkChase()
123 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
126 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Dai.cpp111 int seqStartId = pDudeInfo->seqStartID; in aiNewState()
300 int nTurnRange = (pDudeInfo->angSpeed<<2)>>4; in aiMoveForward()
334 t2 += pDudeInfo->sideSpeed; in aiMoveDodge()
336 t2 -= pDudeInfo->sideSpeed; in aiMoveDodge()
1404 if (Chance(pDudeInfo->alertChance)) in aiThinkTarget()
1418 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in aiThinkTarget()
1423 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in aiThinkTarget()
1443 if (Chance(pDudeInfo->alertChance)) in sub_5F15C()
1457 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in sub_5F15C()
1462 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in sub_5F15C()
[all …]
H A Daizombf.cpp76 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in HackSeqCallback() local
77 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat); in HackSeqCallback()
89 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in PukeSeqCallback() local
91 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat); in PukeSeqCallback()
120 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
126 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
139 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
157 if (nDist <= pDudeInfo->seeDist) in thinkChase()
160 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
163 if (klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Daipod.cpp105 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_6FFA0() local
118 if (pDudeInfo->seeDist*0.1 < nDist) in sub_6FFA0()
131 if (pDudeInfo->seeDist*0.1 < nDist) in sub_6FFA0()
182 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_70380() local
188 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) { in sub_70380()
223 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_704D8() local
249 if (nDist <= pDudeInfo->seeDist) in sub_704D8()
252 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in sub_704D8()
255 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in sub_704D8()
H A Dairat.cpp80 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
86 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
99 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
117 if (nDist <= pDudeInfo->seeDist) in thinkChase()
120 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
123 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Daispid.cpp168 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in sub_71370() local
180 if (nDist < 0x1a00 && nDist > 0x1400 && klabs(pSprite->ang-nAngle) < pDudeInfo->periphery) in sub_71370()
182 … else if (nDist < 0x1400 && nDist > 0xc00 && klabs(pSprite->ang-nAngle) < pDudeInfo->periphery) in sub_71370()
184 else if (nDist < 0xc00 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in sub_71370()
205 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
211 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
224 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
242 if (nDist <= pDudeInfo->seeDist) { in thinkChase()
244 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
246 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) { in thinkChase()
H A Daihound.cpp114 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
120 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
137 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
159 if (nDist <= pDudeInfo->seeDist) in thinkChase()
162 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
165 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Dblood.cpp215 seqPrecacheId(pDudeInfo->seqStartID); in PrecacheDude()
216 seqPrecacheId(pDudeInfo->seqStartID+5); in PrecacheDude()
217 seqPrecacheId(pDudeInfo->seqStartID+1); in PrecacheDude()
218 seqPrecacheId(pDudeInfo->seqStartID+2); in PrecacheDude()
225 seqPrecacheId(pDudeInfo->seqStartID+6); in PrecacheDude()
226 seqPrecacheId(pDudeInfo->seqStartID+7); in PrecacheDude()
227 seqPrecacheId(pDudeInfo->seqStartID+8); in PrecacheDude()
228 seqPrecacheId(pDudeInfo->seqStartID+9); in PrecacheDude()
235 seqPrecacheId(pDudeInfo->seqStartID+6); in PrecacheDude()
236 seqPrecacheId(pDudeInfo->seqStartID+7); in PrecacheDude()
[all …]
H A Daiburn.cpp101 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
107 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
172 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
210 if (nDist <= pDudeInfo->seeDist) in thinkChase()
213 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
216 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Dplayer.cpp591 DUDEINFO *pDudeInfo = pPlayer->pDudeInfo; in playerSetRace() local
592 *pDudeInfo = gPlayerTemplate[nLifeMode]; in playerSetRace()
596 pPlayer->pSprite->clipdist = pDudeInfo->clipdist; in playerSetRace()
599pDudeInfo->at70[i] = mulscale8(Handicap[gProfile[pPlayer->nPlayer].skill], pDudeInfo->startDamage[… in playerSetRace()
694 DUDEINFO *pDudeInfo = &dudeInfo[kDudePlayer1 + nPlayer - kDudeBase]; in playerStart() local
695 pPlayer->pDudeInfo = pDudeInfo; in playerStart()
698 seqSpawn(pDudeInfo->seqStartID, 3, pSprite->extra, -1); in playerStart()
708 pSprite->clipdist = pDudeInfo->clipdist; in playerStart()
712 pPlayer->pXSprite->health = pDudeInfo->startHealth<<4; in playerStart()
2002 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in playerDamageSprite() local
[all …]
H A Daiunicult.cpp482 DUDEINFO* pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
496 if (dist < pDudeInfo->seeDist && klabs(losAngle) <= pDudeInfo->periphery) { in thinkChase()
942 DUDEINFO* pDudeInfo = getDudeInfo(pSprite->type); in getGenDudeMoveSpeed() local
947 speed = pDudeInfo->frontSpeed; in getGenDudeMoveSpeed()
950 speed = pDudeInfo->sideSpeed; in getGenDudeMoveSpeed()
953 speed = pDudeInfo->backSpeed; in getGenDudeMoveSpeed()
956 speed = pDudeInfo->angSpeed; in getGenDudeMoveSpeed()
978 int maxTurn = pDudeInfo->angSpeed * 4 >> 4; in aiGenDudeMoveForward()
985 int nAccel = pDudeInfo->frontSpeed << 2; in aiGenDudeMoveForward()
1543 DUDEINFO* pDudeInfo = &dudeInfo[nType]; in dudeLeechOperate() local
[all …]
H A Daicult.cpp235 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkGoto() local
241 if (nDist < 5120 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
274 DUDEINFO *pDudeInfo = getDudeInfo(pSprite->type); in thinkChase() local
314 if (nDist <= pDudeInfo->seeDist) in thinkChase()
317 int height = (pDudeInfo->eyeHeight*pSprite->yrepeat)<<2; in thinkChase()
320 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
H A Dnnexts.cpp4040 if (dist <= pDudeInfo->meleeDist) return 0; in aiFightGetTargetDist()
4041 if (dist >= pDudeInfo->seeDist) return 13; in aiFightGetTargetDist()
4045 if (dist <= pDudeInfo->seeDist / 9) return 4; in aiFightGetTargetDist()
4046 if (dist <= pDudeInfo->seeDist / 8) return 5; in aiFightGetTargetDist()
4047 if (dist <= pDudeInfo->seeDist / 7) return 6; in aiFightGetTargetDist()
4048 if (dist <= pDudeInfo->seeDist / 6) return 7; in aiFightGetTargetDist()
4049 if (dist <= pDudeInfo->seeDist / 5) return 8; in aiFightGetTargetDist()
6166 int z = pSprite->z + pDudeInfo->eyeHeight; in aiPatrolMoveZ()
6210 int frontSpeed = pDudeInfo->frontSpeed; in aiPatrolMove()
6335 hearDist = pDudeInfo->hearDist >> 1; in aiPatrolSearchTargets()
[all …]
H A Dnnexts.h270 int aiFightGetTargetDist(spritetype* pSprite, DUDEINFO* pDudeInfo, spritetype* pTarget);
272 bool aiFightDudeCanSeeTarget(XSPRITE* pXDude, DUDEINFO* pDudeInfo, spritetype* pTarget);

12