quake2ts 0.0.450 → 0.0.453
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/game/dist/browser/index.global.js +4 -4
- package/packages/game/dist/browser/index.global.js.map +1 -1
- package/packages/game/dist/cjs/index.cjs +9 -0
- package/packages/game/dist/cjs/index.cjs.map +1 -1
- package/packages/game/dist/esm/index.js +8 -0
- package/packages/game/dist/esm/index.js.map +1 -1
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/game/dist/types/ai/targeting.d.ts +1 -0
- package/packages/game/dist/types/ai/targeting.d.ts.map +1 -1
- package/packages/game/dist/types/entities/selection.d.ts +73 -0
- package/packages/game/dist/types/entities/selection.d.ts.map +1 -0
|
@@ -3409,6 +3409,13 @@ function findTarget(self, level, context, trace, hearability = {}) {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
return true;
|
|
3411
3411
|
}
|
|
3412
|
+
function ai_checkattack(self, dist, context) {
|
|
3413
|
+
if (!self.enemy) {
|
|
3414
|
+
return false;
|
|
3415
|
+
}
|
|
3416
|
+
const checkAttack = self.monsterinfo.checkattack || M_CheckAttack;
|
|
3417
|
+
return checkAttack(self, context);
|
|
3418
|
+
}
|
|
3412
3419
|
|
|
3413
3420
|
// src/ai/movement.ts
|
|
3414
3421
|
var STEPSIZE = 18;
|
|
@@ -26254,6 +26261,7 @@ export {
|
|
|
26254
26261
|
addKey,
|
|
26255
26262
|
addPowerup,
|
|
26256
26263
|
ai_charge,
|
|
26264
|
+
ai_checkattack,
|
|
26257
26265
|
ai_face,
|
|
26258
26266
|
ai_move,
|
|
26259
26267
|
ai_run,
|