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.
@@ -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,